diff --git a/addons/stock/wizard/stock_change_product_qty.py b/addons/stock/wizard/stock_change_product_qty.py index 9a00a6d62ce..e0ec2136d9b 100644 --- a/addons/stock/wizard/stock_change_product_qty.py +++ b/addons/stock/wizard/stock_change_product_qty.py @@ -62,6 +62,9 @@ class stock_change_product_qty(osv.osv_memory): res.update({'new_quantity': 1}) if 'product_id' in fields: res.update({'product_id': product_id}) + if 'location_id' in fields: + location_id = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_stock', context=context) + res.update({'location_id': location_id.id}) return res def change_product_qty(self, cr, uid, ids, context=None):