mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
feat: remove old fixtures
This commit is contained in:
@@ -485,8 +485,6 @@ def install_defaults(args=None):
|
||||
# bank account same as a CoA entry
|
||||
pass
|
||||
|
||||
add_dashboards()
|
||||
|
||||
# Now, with fixtures out of the way, onto concrete stuff
|
||||
records = [
|
||||
|
||||
@@ -504,27 +502,6 @@ 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
|
||||
|
||||
dashboard_data = get_default_dashboards()
|
||||
|
||||
# create account balance timeline before creating dashbaord charts
|
||||
doctype = "dashboard_chart_source"
|
||||
docname = "account_balance_timeline"
|
||||
folder = os.path.dirname(frappe.get_module("erpnext.accounts").__file__)
|
||||
doc_path = os.path.join(folder, doctype, docname, docname) + ".json"
|
||||
import_file_by_path(doc_path, force=0, for_sync=True)
|
||||
|
||||
make_records(dashboard_data["Charts"])
|
||||
make_records(dashboard_data["Dashboards"])
|
||||
|
||||
|
||||
def get_fy_details(fy_start_date, fy_end_date):
|
||||
start_year = getdate(fy_start_date).year
|
||||
|
||||
Reference in New Issue
Block a user