From 99cb37c38db3609906fb0a599fb3ba29d27fc170 Mon Sep 17 00:00:00 2001 From: phot0n Date: Mon, 12 Sep 2022 16:03:06 +0530 Subject: [PATCH] fix: allow syncing of dashboard even if setup is not complete (cherry picked from commit 1d27f936e99dbe67d24c3cb501a01e59273b96b4) --- frappe/utils/dashboard.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frappe/utils/dashboard.py b/frappe/utils/dashboard.py index 125e0d2245..0c60e817a3 100644 --- a/frappe/utils/dashboard.py +++ b/frappe/utils/dashboard.py @@ -85,13 +85,7 @@ def get_dashboards_with_link(docname, doctype): def sync_dashboards(app=None): """Import, overwrite dashboards from `[app]/[app]_dashboard`""" - if not cint(frappe.db.get_single_value("System Settings", "setup_complete")): - return - - if app: - apps = [app] - else: - apps = frappe.get_installed_apps() + apps = [app] if app else frappe.get_installed_apps() for app_name in apps: print(f"Updating Dashboard for {app_name}")