2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Adds custom delete routine for PartCategory model

This commit is contained in:
Oliver
2022-03-10 15:01:20 +11:00
parent 24af134a87
commit 82840b0590
2 changed files with 31 additions and 23 deletions

View File

@ -65,7 +65,7 @@ class StockLocation(InvenTreeTree):
parent = self.parent
tree_id = self.tree_id
# Update each part in the stock location
# Update each stock item in the stock location
for item in self.stock_items.all():
item.location = self.parent
item.save()