diff --git a/addons/stock/wizard/stock_change_product_qty.py b/addons/stock/wizard/stock_change_product_qty.py index 961eb2e0aef..8843581d70a 100644 --- a/addons/stock/wizard/stock_change_product_qty.py +++ b/addons/stock/wizard/stock_change_product_qty.py @@ -98,7 +98,7 @@ 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) - product = data.product_id.with_context(location=data.location_id.id) + product = data.product_id.with_context(location=data.location_id.id, lot_id= data.lot_id.id) th_qty = product.qty_available line_data = { 'inventory_id': inventory_id, diff --git a/addons/stock/wizard/stock_change_product_qty_view.xml b/addons/stock/wizard/stock_change_product_qty_view.xml index 10bad736bb2..7c11189d1c3 100644 --- a/addons/stock/wizard/stock_change_product_qty_view.xml +++ b/addons/stock/wizard/stock_change_product_qty_view.xml @@ -10,7 +10,11 @@ - + +

+ When you select a serial number (lot), the quantity is corrected with respect to + the quantity of that serial number (lot) and not to the total quantity of the product. +