diff --git a/erpnext/stock/doctype/company_restriction/test_company_restriction.py b/erpnext/stock/doctype/company_restriction/test_company_restriction.py index 719860c1f0b..52c7da50101 100644 --- a/erpnext/stock/doctype/company_restriction/test_company_restriction.py +++ b/erpnext/stock/doctype/company_restriction/test_company_restriction.py @@ -103,11 +103,9 @@ class TestCompanyRestriction(ERPNextTestSuite): permitted = frappe.get_meta("Customer").get_permitted_fieldnames(user=sales_user) self.assertNotIn("restrict_to_companies", permitted) - self.assertNotIn("allowed_companies", permitted) permitted = frappe.get_meta("Customer").get_permitted_fieldnames(user=manager) self.assertIn("restrict_to_companies", permitted) - self.assertIn("allowed_companies", permitted) frappe.set_user(sales_user) self.addCleanup(frappe.set_user, "Administrator")