[MERGE] [FIX] stock: correctly recount quantity when split on multiple locations for product reservations (opw 600277)

bzr revid: mat@openerp.com-20131121112321-fdttljrrogsbihf2
This commit is contained in:
Martin Trigaux
2013-11-21 12:23:21 +01:00
+1
View File
@@ -2202,6 +2202,7 @@ class stock_move(osv.osv):
while res:
r = res.pop(0)
product_uos_qty = self.pool.get('stock.move').onchange_quantity(cr, uid, ids, move.product_id.id, r[0], move.product_id.uom_id.id, move.product_id.uos_id.id)['value']['product_uos_qty']
move_id = self.copy(cr, uid, move.id, {'product_uos_qty': product_uos_qty, 'product_qty': r[0], 'location_id': r[1]})
done.append(move_id)
if done: