Skip to content
Snippets Groups Projects
Commit 21aaec28 authored by Josse Colpaert's avatar Josse Colpaert
Browse files

[FIX] Theoretical quantity for created inventory adjustment should take into...

[FIX] Theoretical quantity for created inventory adjustment should take into account location in context of stock
parent 8aca4094
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,8 @@ class stock_change_product_qty(osv.osv_memory):
'product_id': data.product_id.id,
'location_id': data.location_id.id,
'lot_id': data.lot_id.id}, context=context)
th_qty = data.product_id.qty_available
product = data.product_id.with_context(location=data.location_id.id)
th_qty = product.qty_available
line_data = {
'inventory_id': inventory_id,
'product_qty': data.new_quantity,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment