From de5b253215e8bb1b1dca1c8e62124e7d5b19b171 Mon Sep 17 00:00:00 2001 From: Abdeali Chharchhoda Date: Wed, 27 Nov 2024 16:53:50 +0530 Subject: [PATCH] fix: Add translation for showing mandatory fields in error msg (cherry picked from commit f42ec6a124d272dec0ac9671b7eef13f55d81de2) --- erpnext/selling/doctype/quotation/quotation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index bd23440aaf0..48ff2756253 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -455,7 +455,9 @@ def _make_customer(source_name, ignore_permissions=False): raise except frappe.MandatoryError as e: 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 = [] lead_link = frappe.utils.get_link_to_form("Lead", lead_name)