fix: typo

This commit is contained in:
Saurabh 2020-03-31 15:57:39 +05:30
parent 6c8d63f3b9
commit 84b93414d0

View File

@ -137,7 +137,7 @@ class Lead(SellingController):
# skipping country since the system auto-sets it from system defaults
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]):
frappe.msgprint(_('Missing mandatory fields in address. \