From be0fcbea68bd24981b8c77a4b01eacaf63835d0a Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 16 Oct 2020 15:55:25 +0530 Subject: [PATCH] fix: Dont add Contact link if is company address --- erpnext/accounts/custom/address.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/custom/address.py b/erpnext/accounts/custom/address.py index 4894c64a1f..5e764037a7 100644 --- a/erpnext/accounts/custom/address.py +++ b/erpnext/accounts/custom/address.py @@ -10,7 +10,7 @@ class ERPNextAddress(Address): def link_address(self): """Link address based on owner""" - if not self.is_your_company_address: + if self.is_your_company_address: return return super(ERPNextAddress, self).link_address()