Fix to clear SO Allocations on receipt of Return Order Line Item (#6117)

* Added stock_item.clearAllocations() to order.models.py

* Update models.py ReturnOrder clear allocations on line receipt
This commit is contained in:
mcollins-DL
2023-12-21 09:00:06 +04:00
committed by GitHub
parent be1820fb94
commit fc5645a9a5
+1
View File
@@ -1926,6 +1926,7 @@ class ReturnOrder(TotalPriceMixin, Order):
stock_item.customer = None
stock_item.sales_order = None
stock_item.save(add_note=False)
stock_item.clearAllocations()
# Add a tracking entry to the StockItem
stock_item.add_tracking_entry(