From 3659bbe389b93c677b169ae0422b22bc296d3a77 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:22:49 +1100 Subject: [PATCH] Fix bug in merge_stock_items (#8284) (#8285) - self() -> self (cherry picked from commit 14d92b872733436b7e601c6f106f2dfaafacbc99) Co-authored-by: Oliver --- 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 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