Skip to content

Commit

Permalink
fix: Add translation for showing mandatory fields in error msg
Browse files Browse the repository at this point in the history
(cherry picked from commit f42ec6a)
  • Loading branch information
Abdeali099 authored and mergify[bot] committed Nov 27, 2024
1 parent 632412b commit 0e1f5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/selling/doctype/quotation/quotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,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>"
Expand Down

0 comments on commit 0e1f5ff

Please sign in to comment.