Skip to content

Commit 0e1f5ff

Browse files
Abdeali099mergify[bot]
authored andcommitted
fix: Add translation for showing mandatory fields in error msg
(cherry picked from commit f42ec6a)
1 parent 632412b commit 0e1f5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

erpnext/selling/doctype/quotation/quotation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def handle_mandatory_error(e, customer, lead_name):
568568
from frappe.utils import get_link_to_form
569569

570570
mandatory_fields = e.args[0].split(":")[1].split(",")
571-
mandatory_fields = [customer.meta.get_label(field.strip()) for field in mandatory_fields]
571+
mandatory_fields = [_(customer.meta.get_label(field.strip())) for field in mandatory_fields]
572572

573573
frappe.local.message_log = []
574574
message = _("Could not auto create Customer due to the following missing mandatory field(s):") + "<br>"

0 commit comments

Comments
 (0)