fix: set filters as argument filters if passed (#20975)

This commit is contained in:
Prssanna Desai 2020-03-18 18:23:38 +05:30 committed by GitHub
parent 9dafc9a3df
commit b4909b8fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ def get(chart_name = None, chart = None, no_cache = None, filters = None, from_d
to_date = chart.to_date
timegrain = chart.time_interval
filters = frappe.parse_json(chart.filters_json)
filters = frappe.parse_json(filters) or frappe.parse_json(chart.filters_json)
account = filters.get("account")
company = filters.get("company")