refactor: track completed app setup wizards and re-run the setup wizard upon new app installation. (#47691)

This commit is contained in:
rohitwaghchaure
2025-06-03 13:02:45 +05:30
committed by GitHub
parent 538e0d08e4
commit 75b5ba6e67
4 changed files with 11 additions and 13 deletions

View File

@@ -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"))