fix: Dont add Contact link if is company address

This commit is contained in:
Faris Ansari 2020-10-16 15:55:25 +05:30
parent 22bcad9dc7
commit be0fcbea68

View File

@ -10,7 +10,7 @@ class ERPNextAddress(Address):
def link_address(self): def link_address(self):
"""Link address based on owner""" """Link address based on owner"""
if not self.is_your_company_address: if self.is_your_company_address:
return return
return super(ERPNextAddress, self).link_address() return super(ERPNextAddress, self).link_address()