ERPNext Version
-
ERPNext: v15.62.0
-
Frappe Framework: v15.x
-
Deployment: (Self-hosted / Frappe Cloud – bạn có thể bổ sung nếu muốn)
Problem Description (Core Issue)
I am using ERPNext in a multi-company setup with two companies:
-
Company A
-
Company B
In ERPNext, Customer is a global master and is not linked directly to a Company.
This creates a challenge for data isolation and internal access control.
Core requirement:
How can I ensure that employees of Company A can only see Customers belonging to Company A,
and employees of Company B can only see Customers belonging to Company B?
What I Have Tried
-
Role Permissions
-
Restricting access by Company
-
Result:
-
Works for transactions (Sales Order, Invoice)
-
Does NOT restrict Customer list visibility
-
-
-
Sales Person + User Permission
-
Assigned Sales Person to Customer (Sales Team)
-
Added User Permission on Sales Person
-
Result:
Users can still see all Customers in the Customer list
-
-
Sales Territory
-
Used Territory to represent Company
-
Assigned Territory to Customer
-
Result:
Territory does not restrict Customer visibility
-
-
Customer Portal Users
-
Considered using portal users
-
Conclusion:
Portal Users are for external customers, not internal staff
-