Merge pull request #44386 from Abdeali099/popup-msg-translation

fix: Add translation for showing mandatory fields in error msg
This commit is contained in:
ruthra kumar
2024-11-27 17:28:54 +05:30
committed by GitHub

View File

@@ -570,7 +570,7 @@ def handle_mandatory_error(e, customer, lead_name):
from frappe.utils import get_link_to_form
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 = []
message = _("Could not auto create Customer due to the following missing mandatory field(s):") + "<br>"