Merge pull request #46437 from frappe/mergify/bp/version-15-hotfix/pr-46426

fix: clear cashe on employee hierarchy change (backport #46426)
This commit is contained in:
ruthra kumar
2025-03-11 10:58:50 +05:30
committed by GitHub

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()