fix: clear cashe on employee hierarchy change to reflect updated permissions

This commit is contained in:
Asmita Hase
2025-03-10 17:06:03 +05:30
parent 7b955b2ea6
commit 6789578b27

View File

@@ -80,6 +80,7 @@ class Employee(NestedSet):
def on_update(self):
self.update_nsm_model()
frappe.clear_cache()
if self.user_id:
self.update_user()
self.update_user_permissions()