From 8737b0dc818efa872d9fc30722d64888b7abf895 Mon Sep 17 00:00:00 2001 From: Joseph Marie Alba Date: Tue, 29 Sep 2020 00:59:06 +0800 Subject: [PATCH] fix: Added Columns correctly exported in Excel Added Columns were not exported in Excel because custom_columns were ignored in the code. With this fix, custom_columns are considered and the Excel exports will correctly include Added Columns --- frappe/desk/query_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/desk/query_report.py b/frappe/desk/query_report.py index 9ce15ef361..eda61c6985 100644 --- a/frappe/desk/query_report.py +++ b/frappe/desk/query_report.py @@ -167,7 +167,7 @@ def run(report_name, filters=None, user=None, ignore_prepared_report=False, cust result = None - if report.prepared_report and not report.disable_prepared_report and not ignore_prepared_report: + if report.prepared_report and not report.disable_prepared_report and not ignore_prepared_report and not custom_columns: if filters: if isinstance(filters, string_types): filters = json.loads(filters)