mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
refactor: track completed app setup wizards and re-run the setup wizard upon new app installation. (backport #47691) (#48223)
* refactor: track completed app setup wizards and re-run the setup wizard upon new app installation. (#47691)
(cherry picked from commit 75b5ba6e67)
# Conflicts:
# erpnext/hooks.py
# erpnext/setup/install.py
* chore: fix conflicts
* chore: fix conflicts
* chore: fix conflicts
* fix: permission issue
* fix: space
---------
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
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