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:
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