mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
Merge pull request #54171 from frappe/mergify/bp/version-16-hotfix/pr-54165
fix: update_nsm only in warehouse creation (backport #54165)
This commit is contained in:
@@ -73,7 +73,8 @@ class Warehouse(NestedSet):
|
||||
self.warn_about_multiple_warehouse_account()
|
||||
|
||||
def on_update(self):
|
||||
self.update_nsm_model()
|
||||
if self.is_new() or self.has_value_changed("parent_warehouse"):
|
||||
self.update_nsm_model()
|
||||
|
||||
def update_nsm_model(self):
|
||||
frappe.utils.nestedset.update_nsm(self)
|
||||
|
||||
Reference in New Issue
Block a user