fix: keep setup_complete in sync with rest (#33215)
For backward compatbility of whatever reads System Settings.
This commit is contained in:
parent
274708b544
commit
1a7da4f025
2 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ class InstalledApplications(Document):
|
|||
)
|
||||
|
||||
self.save()
|
||||
frappe.clear_cache(doctype="System Settings")
|
||||
frappe.db.set_single_value("System Settings", "setup_complete", frappe.is_setup_complete())
|
||||
|
||||
def get_app_wise_setup_details(self):
|
||||
"""Get app wise setup details from the Installed Application doctype"""
|
||||
|
|
|
|||
|
|
@ -369,7 +369,9 @@ def _get_default_roles() -> set[str]:
|
|||
def disable_future_access():
|
||||
frappe.db.set_default("desktop:home_page", "workspace")
|
||||
# Enable onboarding after install
|
||||
frappe.clear_cache(doctype="System Settings")
|
||||
frappe.db.set_single_value("System Settings", "enable_onboarding", 1)
|
||||
frappe.db.set_single_value("System Settings", "setup_complete", frappe.is_setup_complete())
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue