mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
fix: displayings mandatory address field in Lead form
This commit is contained in:
@@ -22,7 +22,7 @@ class Lead(SellingController):
|
|||||||
load_address_and_contact(self)
|
load_address_and_contact(self)
|
||||||
|
|
||||||
def before_insert(self):
|
def before_insert(self):
|
||||||
if self.address_type and self.address_title and self.address_line1 and self.city and self.country:
|
if self.address_title and self.address_type:
|
||||||
self.address_doc = self.create_address()
|
self.address_doc = self.create_address()
|
||||||
self.contact_doc = self.create_contact()
|
self.contact_doc = self.create_contact()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user