mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-11 19:38:19 +00:00
* Added stock_item.clearAllocations() to order.models.py
* Update models.py ReturnOrder clear allocations on line receipt
(cherry picked from commit fc5645a9a5)
Co-authored-by: mcollins-DL <71047397+mcollins-DL@users.noreply.github.com>
This commit is contained in:
1 parent
79fdf9243b
commit
9f8ee5a095
1 file changed
+1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user