diff --git a/frappe/core/doctype/role_profile/role_profile.py b/frappe/core/doctype/role_profile/role_profile.py index 22a6d0a9a7..c026a4926a 100644 --- a/frappe/core/doctype/role_profile/role_profile.py +++ b/frappe/core/doctype/role_profile/role_profile.py @@ -25,7 +25,7 @@ class RoleProfile(Document): self.name = self.role_profile def on_update(self): - self.queue_action("update_all_users", now=frappe.flags.in_test) + self.queue_action("update_all_users", now=frappe.flags.in_test, enqueue_after_commit=True) def update_all_users(self): """Changes in role_profile reflected across all its user"""