bugfixed for split finished product move

bzr revid: hda@hda-20090406133720-6bim5wy5z0w3a101
This commit is contained in:
husen daudi
2009-04-06 19:07:20 +05:30
parent dc90ccab8b
commit e6fa616198
+1 -1
View File
@@ -97,7 +97,7 @@ def _track_lines(self, cr, uid, data, context):
new_move.append(current_move)
else:
current_move = move.id
new_prodlot = prodlot_obj.create(cr, uid, {'name': sequence, 'ref': '%d'%idx})
new_prodlot = prodlot_obj.create(cr, uid, {'name': sequence, 'ref': '%d'%idx}, {'product_id': move.product_id.id})
update_val['prodlot_id'] = new_prodlot
move_obj.write(cr, uid, [current_move], update_val)