[Fix] stock: stock_move_do_partial to properly set the production lot
bzr revid: sbh@tinyerp.com-20100922065459-dzp65m06jiomu4rp
This commit is contained in:
@@ -2284,8 +2284,6 @@ class stock_move(osv.osv):
|
||||
product_price = partial_data.get('product_price',0.0)
|
||||
product_currency = partial_data.get('product_currency',False)
|
||||
prodlot_id = partial_data.get('prodlot_id',False)
|
||||
if prodlot_id:
|
||||
self.write(cr, uid, [move.id],{'prodlot_id': prodlot_id,})
|
||||
if move.product_qty == product_qty:
|
||||
complete.append(move)
|
||||
elif move.product_qty > product_qty:
|
||||
@@ -2354,6 +2352,8 @@ class stock_move(osv.osv):
|
||||
complete.append(move)
|
||||
|
||||
for move in complete:
|
||||
if prodlot_id:
|
||||
self.write(cr, uid, [move.id],{'prodlot_id': prodlot_id,})
|
||||
self.action_done(cr, uid, [move.id], context=context)
|
||||
if move.picking_id.id :
|
||||
# TOCHECK : Done picking if all moves are done
|
||||
|
||||
Reference in New Issue
Block a user