User Progress (#10336)
* [user-progress] first cut
* [user-progress] Add users slide, remove taxes, make sample data
* wip tests
* [setup-wiz] UI test
* [user-progress] notif test, docs trim
* wip
* [user-progress] Setup Progress single to update action states, fixtures
* setup progress actions patch
* rename sales_target field patch
* [progress] wip reform slide data
* [progress] remove slide data
* [setup] add roles for GST doctypes, remove commit from fixtures
diff --git a/erpnext/utilities/activation.py b/erpnext/utilities/activation.py
index 1ae92c1..b694ea6 100644
--- a/erpnext/utilities/activation.py
+++ b/erpnext/utilities/activation.py
@@ -1,3 +1,6 @@
+# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
import frappe, erpnext
from frappe import _
@@ -51,9 +54,8 @@
if get_level() > 6:
return []
- messages = []
-
domain = frappe.db.get_value('Company', erpnext.get_default_company(), 'domain')
+ messages = []
message_settings = [
frappe._dict(
@@ -138,7 +140,6 @@
)
]
-
for m in message_settings:
if not m.domain or domain in m.domain:
m.count = frappe.db.count(m.doctype)