mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 12:08:26 +00:00
[minor] update warehouse_group in item.reorder_levels
This commit is contained in:
@@ -488,6 +488,8 @@ class Item(WebsiteGenerator):
|
||||
def validate_warehouse_for_reorder(self):
|
||||
warehouse = []
|
||||
for i in self.get("reorder_levels"):
|
||||
if not i.warehouse_group:
|
||||
i.warehouse_group = i.warehouse
|
||||
if i.get("warehouse") and i.get("warehouse") not in warehouse:
|
||||
warehouse += [i.get("warehouse")]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user