mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 15:25:19 +00:00
fix: Add translation for showing mandatory fields in error msg
(cherry picked from commit f42ec6a124)
This commit is contained in:
committed by
ruthra kumar
parent
627a50e7bc
commit
de5b253215
@@ -455,7 +455,9 @@ def _make_customer(source_name, ignore_permissions=False):
|
|||||||
raise
|
raise
|
||||||
except frappe.MandatoryError as e:
|
except frappe.MandatoryError as e:
|
||||||
mandatory_fields = e.args[0].split(":")[1].split(",")
|
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 = []
|
frappe.local.message_log = []
|
||||||
lead_link = frappe.utils.get_link_to_form("Lead", lead_name)
|
lead_link = frappe.utils.get_link_to_form("Lead", lead_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user