mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
Revert "feat(site_sync): return erpnext data"
This commit is contained in:
@@ -47,27 +47,7 @@ def get_level():
|
|||||||
if frappe.db.sql('select name from tabUser where last_login > date_sub(now(), interval 2 day) limit 1'):
|
if frappe.db.sql('select name from tabUser where last_login > date_sub(now(), interval 2 day) limit 1'):
|
||||||
activation_level += 1
|
activation_level += 1
|
||||||
|
|
||||||
level = {"activation_level": 10, "sales_data": [
|
return activation_level
|
||||||
{"Item": frappe.db.count('Item')},
|
|
||||||
{"Sales Order": frappe.db.count('Sales Order')},
|
|
||||||
{"Purchase Order": frappe.db.count('Purchase Order')},
|
|
||||||
{"Employee": frappe.db.count('Employee')},
|
|
||||||
{"Lead": frappe.db.count('Lead')},
|
|
||||||
{"Payment Entry": frappe.db.count('Payment Entry')},
|
|
||||||
{"Communication": frappe.db.count('Communication')},
|
|
||||||
{"User": frappe.db.count('User')},
|
|
||||||
{"Student": frappe.db.count('Student')},
|
|
||||||
{"Instructor": frappe.db.count('Instructor')},
|
|
||||||
{"Sales Invoice": frappe.db.count('Sales Invoice')},
|
|
||||||
{"BOM": frappe.db.count('BOM')},
|
|
||||||
{"Quotation": frappe.db.count('Quotation')},
|
|
||||||
{"Lead": frappe.db.count('Lead')},
|
|
||||||
{"Payment Entry": frappe.db.count('Payment Entry')},
|
|
||||||
{"Journal Entry": frappe.db.count('Journal Entry')},
|
|
||||||
{"Stock Entry": frappe.db.count('Stock Entry')},
|
|
||||||
]}
|
|
||||||
|
|
||||||
return level
|
|
||||||
|
|
||||||
def get_help_messages():
|
def get_help_messages():
|
||||||
'''Returns help messages to be shown on Desktop'''
|
'''Returns help messages to be shown on Desktop'''
|
||||||
|
|||||||
Reference in New Issue
Block a user