From f28a5da952cb97a0de711817b07f5944a10316fe Mon Sep 17 00:00:00 2001 From: RobertSchouten Date: Tue, 7 Jun 2016 17:03:41 +0800 Subject: [PATCH] [fix] show company in list view allows address and contact to only contain company not customer or supplier or sales partner --- erpnext/utilities/address_and_contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/utilities/address_and_contact.py b/erpnext/utilities/address_and_contact.py index d175db6649..a2e566f7ed 100644 --- a/erpnext/utilities/address_and_contact.py +++ b/erpnext/utilities/address_and_contact.py @@ -80,7 +80,7 @@ def get_permitted_and_not_permitted_links(doctype): meta = frappe.get_meta(doctype) for df in meta.get_link_fields(): - if df.options not in ("Customer", "Supplier", "Sales Partner"): + if df.options not in ("Customer", "Supplier", "Company", "Sales Partner"): continue if frappe.has_permission(df.options):