Thanks for your awesome product and all the efforts put into ERPNext!
I have a question about the following scenario:
We have two branches, Branch A and Branch B.
User1 should be able to create, edit, and submit Quotations and Sales orders in Branch A. (no option for delete) this we can create using role permission.
The same User1 should only be able to view Quotations and sales orders in Branch B (no editing or creating).
However, in Role Permissions, we can set general permissions like Read, Write, Submit, etc., but there is no direct option to apply conditions based on the branch.
Is there a way to achieve this? How can we set permissions dynamically, so that a user has different levels of access based on the branch assigned to the document?
Any insights would be greatly appreciated! Thanks in advance.