2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

Fix bug in merge_stock_items (#8284)

- self() -> self
This commit is contained in:
Oliver
2024-10-15 14:20:14 +11:00
committed by GitHub
parent eeab8d30fb
commit 14d92b8727

View File

@ -1864,7 +1864,7 @@ class StockItem(
# Any "sales order allocations" for the other item must be assigned to this one
for allocation in other.sales_order_allocations.all():
allocation.stock_item = self()
allocation.stock_item = self
allocation.save()
# Prevent atomicity issues when we are merging our own "parent" part in