fix: re-run patch

This commit is contained in:
Rohit Waghchaure 2025-06-25 13:36:26 +05:30
parent ef66b86d93
commit 4fce595a73
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,5 @@
[pre_model_sync] [pre_model_sync]
frappe.patches.v16_0.enable_setup_complete frappe.patches.v16_0.enable_setup_complete #25-06-2025
frappe.patches.v15_0.remove_implicit_primary_key frappe.patches.v15_0.remove_implicit_primary_key
frappe.patches.v12_0.remove_deprecated_fields_from_doctype #3 frappe.patches.v12_0.remove_deprecated_fields_from_doctype #3
execute:frappe.utils.global_search.setup_global_search_table() execute:frappe.utils.global_search.setup_global_search_table()

View file

@ -6,6 +6,11 @@ def execute():
frappe.reload_doc("core", "doctype", "installed_applications") frappe.reload_doc("core", "doctype", "installed_applications")
is_setup_complete = frappe.db.get_single_value("System Settings", "setup_complete") is_setup_complete = frappe.db.get_single_value("System Settings", "setup_complete")
if frappe.get_all(
"User", filters={"name": ("not in", ["Guest", "Administrator"])}, pluck="name", limit=1
):
is_setup_complete = 1
installed_apps = frappe.get_installed_apps(_ensure_on_bench=True) installed_apps = frappe.get_installed_apps(_ensure_on_bench=True)
for app_name in frappe.get_all("Installed Application", pluck="app_name"): for app_name in frappe.get_all("Installed Application", pluck="app_name"):
if app_name not in installed_apps: if app_name not in installed_apps: