fix: displayings mandatory address field in Lead form

This commit is contained in:
Anupam 2020-10-13 17:33:58 +05:30
parent 3245eaaeb0
commit 7db38058f3

View File

@ -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()