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

(cherry picked from commit 6789578b27)
This commit is contained in:
Asmita Hase
2025-03-10 17:06:03 +05:30
committed by Mergify
parent 5b69445294
commit 4dfdb2b0a1

View File

@@ -78,6 +78,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()