[WIP] stock: packaging

bzr revid: qdp-launchpad@openerp.com-20130628100804-flhsw4azeamtmqmw
This commit is contained in:
Quentin (OpenERP)
2013-06-28 12:08:04 +02:00
parent 443b5fe378
commit 06c7ca0fbb
+1 -1
View File
@@ -3937,7 +3937,7 @@ class stock_pack_operation(osv.osv):
corresponding_move_ids = stock_move_obj.search(cr, uid, [('picking_id', '=', picking_id), ('product_id', '=', product_id)], context=context)
if corresponding_move_ids:
corresponding_move = stock_move_obj.browse(cr, uid, corresponding_move_ids[0], context=context)
todo_on_moves += [(1, corresponding_move.id, {'remaining_qty': corresponding_move.product_qty - qty})]
todo_on_moves += [(1, corresponding_move.id, {'remaining_qty': corresponding_move.remaining_qty - 1})]
else:
#decide what to do
pass