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

@@ -35,13 +35,6 @@ def after_install():
frappe.db.commit()
def check_setup_wizard_not_completed():
if cint(frappe.db.get_single_value("System Settings", "setup_complete") or 0):
message = """ERPNext can only be installed on a fresh site where the setup wizard is not completed.
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall"""
frappe.throw(message) # nosemgrep
def make_default_operations():
for operation in ["Assembly"]:
if not frappe.db.exists("Operation", operation):