diff --git a/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py index 6ecf3609f0..c2c2423805 100644 --- a/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py +++ b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py @@ -6,12 +6,13 @@ from itertools import groupby from operator import itemgetter import json import frappe +from frappe.core.page.dashboard.dashboard import cache_source from frappe.utils import add_to_date, date_diff, getdate, nowdate from erpnext.accounts.report.general_ledger.general_ledger import execute @frappe.whitelist() +@cache_source def get(filters=None): - filters = json.loads(filters) timespan = filters.get("timespan") timegrain = filters.get("timegrain") account = filters.get("account")