From 14d92b872733436b7e601c6f106f2dfaafacbc99 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 15 Oct 2024 14:20:14 +1100 Subject: [PATCH] Fix bug in merge_stock_items (#8284) - self() -> self --- src/backend/InvenTree/stock/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/stock/models.py b/src/backend/InvenTree/stock/models.py index d5ea650c4b..e29c06c9ab 100644 --- a/src/backend/InvenTree/stock/models.py +++ b/src/backend/InvenTree/stock/models.py @@ -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