2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Fix bug in merge_stock_items (#8284) (#8285)

- self() -> self

(cherry picked from commit 14d92b872733436b7e601c6f106f2dfaafacbc99)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2024-10-15 14:22:49 +11:00 committed by GitHub
parent 933a5a5595
commit 3659bbe389
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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