Revert "fix: update_nsm only in warehouse creation" (#54178)

This commit is contained in:
Mihir Kandoi
2026-04-09 18:34:38 +05:30
committed by GitHub
parent b0e3fa3979
commit 9bc5a30ea4

View File

@@ -74,8 +74,7 @@ class Warehouse(NestedSet):
self.warn_about_multiple_warehouse_account()
def on_update(self):
if self.is_new() or self.has_value_changed("parent_warehouse"):
self.update_nsm_model()
self.update_nsm_model()
def update_nsm_model(self):
frappe.utils.nestedset.update_nsm(self)