mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
Merge pull request #44391 from frappe/mergify/bp/version-15-hotfix/pr-44386
fix: Add translation for showing mandatory fields in error msg (backport #44386)
This commit is contained in:
@@ -569,7 +569,7 @@ def handle_mandatory_error(e, customer, lead_name):
|
|||||||
from frappe.utils import get_link_to_form
|
from frappe.utils import get_link_to_form
|
||||||
|
|
||||||
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 = []
|
||||||
message = _("Could not auto create Customer due to the following missing mandatory field(s):") + "<br>"
|
message = _("Could not auto create Customer due to the following missing mandatory field(s):") + "<br>"
|
||||||
|
|||||||
Reference in New Issue
Block a user