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 c9ef01708d7723189fa667264b9e07c8dddbe368..189ff09a49d6d4f3a5c8d1f261b11e5e44e86eea 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")), )