fix(data import): use translated column names for validations as per user-set language
This commit is contained in:
parent
5ae0d96d73
commit
b3a89f8d3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue