diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 823074a998a..e05428f8c17 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2473,6 +2473,7 @@ class stock_move(osv.osv): update_val = { 'product_qty' : quantity_rest, 'product_uos_qty' : uos_qty_rest, + 'location_id': location_id or move.location_id.id, } self.write(cr, uid, [move.id], update_val)