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:
@ -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