diff --git a/src/backend/InvenTree/stock/models.py b/src/backend/InvenTree/stock/models.py index 53b19f1fc9..3d74421ddf 100644 --- a/src/backend/InvenTree/stock/models.py +++ b/src/backend/InvenTree/stock/models.py @@ -1776,7 +1776,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