fix: displayings mandatory address field in Lead form
This commit is contained in:
parent
3245eaaeb0
commit
7db38058f3
@ -22,7 +22,7 @@ class Lead(SellingController):
|
||||
load_address_and_contact(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.contact_doc = self.create_contact()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user