mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
fix: dont make dashboards if company is not set (#18975)
* fix: dont make dashboardss if company is not set * fix: function call * Update dashboard_charts.py
This commit is contained in:
committed by
Nabin Hait
parent
88e8688a4b
commit
e851346b4c
@@ -501,6 +501,11 @@ def install_defaults(args=None):
|
||||
make_records(records)
|
||||
|
||||
def add_dashboards():
|
||||
from erpnext.setup.setup_wizard.data.dashboard_charts import get_company_for_dashboards
|
||||
|
||||
if not get_company_for_dashboards():
|
||||
return
|
||||
|
||||
from erpnext.setup.setup_wizard.data.dashboard_charts import get_default_dashboards
|
||||
from frappe.modules.import_file import import_file_by_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user