fix(data import): use translated column names for validations as per user-set language

This commit is contained in:
AarDG10 2025-12-03 18:08:13 +05:30
parent 5ae0d96d73
commit b3a89f8d3e

View file

@ -494,7 +494,7 @@ class ImportFile:
frappe.throw(_("Import template should contain a Header row."), title=_("Template Error"))
for field in mandatory_fields:
if field not in headers:
if field not in headers or _(field) not in headers:
frappe.throw(
_(
"Mandatory field {0} is missing in the import template for {1}. Please correct the template and try again."