[MERGE] Stock : Correction on splitting moves by setting proper UoS qty.
authorJay Vora (OpenERP) <jvo@tinyerp.com>
Mon, 25 Jul 2011 09:53:22 +0000 (15:23 +0530)
committerJay Vora (OpenERP) <jvo@tinyerp.com>
Mon, 25 Jul 2011 09:53:22 +0000 (15:23 +0530)
bzr revid: jvo@tinyerp.com-20110725095322-r96oyrc2l3yzr8ns

1  2 
addons/stock/stock.py

@@@ -1925,7 -1923,7 +1923,7 @@@ class stock_move(osv.osv)
                      done.append(move.id)
                      pickings[move.picking_id.id] = 1
                      r = res.pop(0)
-                     cr.execute('update stock_move set location_id=%s, product_qty=%s where id=%s', (r[1], r[0], move.id))
 -                    cr.execute('update stock_move set location_id=%s, product_qty=%s , product_uos_qty=%s where id=%s', (r[1], r[0], r[0] * move.product_id.uos_coeff, move.id))
++                    cr.execute('update stock_move set location_id=%s, product_qty=%s, product_uos_qty=%s where id=%s', (r[1], r[0], r[0] * move.product_id.uos_coeff, move.id))
  
                      while res:
                          r = res.pop(0)