mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 18:25:32 +00:00
Merge pull request #44390 from frappe/mergify/bp/version-14-hotfix/pr-44386
fix: Add translation for showing mandatory fields in error msg (backport #44386)
This commit is contained in:
@@ -455,7 +455,9 @@ def _make_customer(source_name, ignore_permissions=False):
|
||||
raise
|
||||
except frappe.MandatoryError as e:
|
||||
mandatory_fields = e.args[0].split(":")[1].split(",")
|
||||
mandatory_fields = [customer.meta.get_label(field.strip()) for field in mandatory_fields]
|
||||
mandatory_fields = [
|
||||
_(customer.meta.get_label(field.strip())) for field in mandatory_fields
|
||||
]
|
||||
|
||||
frappe.local.message_log = []
|
||||
lead_link = frappe.utils.get_link_to_form("Lead", lead_name)
|
||||
|
||||
Reference in New Issue
Block a user