[FIX] Bug of referencing variable on split in production lot

bzr revid: jvo@tinyerp.com-20090603072114-efzlf5rca3wtcznr
This commit is contained in:
Jay (Open ERP)
2009-06-03 12:51:14 +05:30
parent a54a6ed8b2
commit abfe5fad43
+1
View File
@@ -77,6 +77,7 @@ def _track_lines(self, cr, uid, data, context):
'product_uos_qty': uos_qty,
}
new_move = []
production_ids = []
for idx in range(int(move.product_qty//quantity)):
if idx:
current_move = move_obj.copy(cr, uid, move.id, {'state': move.state, 'production_id': move.production_id.id})