From 20c1bcd654ea6e6e795546379355b17758bb86b5 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 (cherry picked from commit 5d0a38dfc76b0a8874f21902636e8bfb5c3bf514) --- .../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 e24c7c9409f..e7dab34d04a 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 @@ -47,9 +47,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")), )