From 458ba9704b59b95c5263e479ffce769718da0b96 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Fri, 2 Aug 2024 11:50:57 +0530 Subject: [PATCH] fix: error message in coa importer --- .../chart_of_accounts_importer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py index c9ef01708d..189ff09a49 100644 --- a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py +++ b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py @@ -35,9 +35,11 @@ def validate_columns(data): no_of_columns = max([len(d) for d in data]) - if no_of_columns > 8: + if no_of_columns != 8: frappe.throw( - _("More columns found than expected. Please compare the uploaded file with standard template"), + _( + "Columns are not according to template. Please compare the uploaded file with standard template" + ), title=(_("Wrong Template")), ) -- GitLab