[FIX] bug in stock partial picking when adding a line in the wizard, fixed.
bzr revid: fp@tinyerp.com-20111109162148-4l4cgn5u8ctw0zf3
This commit is contained in:
parent
15375b9835
commit
50391541ec
|
@ -55,9 +55,9 @@
|
|||
pick = self.browse(cr, uid, ref('stock.stock_picking_1'), {})
|
||||
for line in pick.move_lines:
|
||||
if line.product_id.id == ref('product.product_product_cpu3'):
|
||||
assert line.product_qty == 5.0, "Wrong quantity for CPU3 back order"
|
||||
assert line.product_qty == 5.0, "Wrong quantity %.2f for CPU3 back order" % (line.product_qty,)
|
||||
elif line.product_id.id == ref('product.product_product_fan2'):
|
||||
assert line.product_qty == 4.0, "Wrong quantity for FAN2 back order"
|
||||
assert line.product_qty == 4.0, "Wrong quantity %.2f for FAN2 back order" % (line.product_qty,)
|
||||
elif line.product_id.id == ref('product.product_product_pc1'):
|
||||
assert line.product_qty == 0.0, "Wrong quantity for PC1 back order"
|
||||
else:
|
||||
|
|
|
@ -121,7 +121,7 @@ class stock_partial_picking(osv.osv_memory):
|
|||
'location_dest_id' : move.location_dest_id.id,
|
||||
'picking_id': partial.picking_id.id
|
||||
},context=context)
|
||||
stock_move.action_done(cr, uid, [move_id], context)
|
||||
#stock_move.action_done(cr, uid, [move_id], context)
|
||||
partial_data['move%s' % (move_id)] = {
|
||||
'product_id': move.product_id.id,
|
||||
'product_qty': move.quantity,
|
||||
|
|
Loading…
Reference in New Issue