mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
fix: typo
This commit is contained in:
@@ -137,7 +137,7 @@ class Lead(SellingController):
|
|||||||
# skipping country since the system auto-sets it from system defaults
|
# skipping country since the system auto-sets it from system defaults
|
||||||
address = frappe.new_doc("Address")
|
address = frappe.new_doc("Address")
|
||||||
|
|
||||||
mandatory_fields = [ df.fieldname for df in doc.meta.fields if df.reqd ]
|
mandatory_fields = [ df.fieldname for df in address.meta.fields if df.reqd ]
|
||||||
|
|
||||||
if not all([self.get(field) for field in mandatory_fields]):
|
if not all([self.get(field) for field in mandatory_fields]):
|
||||||
frappe.msgprint(_('Missing mandatory fields in address. \
|
frappe.msgprint(_('Missing mandatory fields in address. \
|
||||||
|
|||||||
Reference in New Issue
Block a user