mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
refactor: track completed app setup wizards and re-run the setup wizard upon new app installation. (#47691)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.core.doctype.installed_applications.installed_applications import get_setup_wizard_completed_apps
|
||||
|
||||
import erpnext
|
||||
|
||||
@@ -45,7 +46,7 @@ def get_level():
|
||||
activation_level += 1
|
||||
sales_data.append({doctype: count})
|
||||
|
||||
if frappe.db.get_single_value("System Settings", "setup_complete"):
|
||||
if "erpnext" in get_setup_wizard_completed_apps():
|
||||
activation_level += 1
|
||||
|
||||
communication_number = frappe.db.count("Communication", dict(communication_medium="Email"))
|
||||
|
||||
Reference in New Issue
Block a user