mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Do not rebuild the entire StockItem tree every time a single StockItem is deleted!
This commit is contained in:
parent
16e00962f5
commit
2d9ca7c1b6
@ -1650,9 +1650,6 @@ def before_delete_stock_item(sender, instance, using, **kwargs):
|
|||||||
child.parent = instance.parent
|
child.parent = instance.parent
|
||||||
child.save()
|
child.save()
|
||||||
|
|
||||||
# Rebuild the MPTT tree
|
|
||||||
StockItem.objects.rebuild()
|
|
||||||
|
|
||||||
|
|
||||||
class StockItemAttachment(InvenTreeAttachment):
|
class StockItemAttachment(InvenTreeAttachment):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user