Hi everyone,
In a multi-company ERPNext setup, I want to restrict Workflows and Notifications so that only users belonging to the same company as the document receive them.
Right now, if I use a common role like “Sales User”, all users with that role across all companies receive the notification even if they don’t have access to the document’s company.
I’ve tried:
User Permissions (each user is limited to one company)
Conditions like doc.company == “Company 1”
But ERPNext still sends notifications to all users with the role.
Question:
Is there a clean way to apply role-based notifications or workflow transitions per company, without duplicating roles (e.g. “Sales User – 1”)?
Any ideas or best practices?
Thanks!