mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 11:04:35 +00:00
Adds custom delete routine for PartCategory model
This commit is contained in:
1 parent
24af134a87
commit
82840b0590
2 files changed
+31
-23
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user