=== modified file 'mrp/mrp.py' --- mrp/mrp.py 2010-09-14 11:52:06 +0000 +++ mrp/mrp.py 2010-11-19 11:26:11 +0000 @@ -513,7 +513,7 @@ (res.id, move.id)) # move_ids.append(res.id) vals= {'state':'confirmed'} - new_moves = [x.id for x in production.move_created_ids] + new_moves = [x.id for x in production.move_created_ids if x.state not in ['done','cancel']] self.pool.get('stock.move').write(cr, uid, new_moves, vals) if not production.date_finnished: self.write(cr, uid, [production.id], === modified file 'stock/stock.py' --- stock/stock.py 2010-10-12 20:26:33 +0000 +++ stock/stock.py 2010-11-19 11:36:06 +0000 @@ -1341,6 +1341,8 @@ # # Accounting Entries # + if move.state in ['done','cancel']: + continue acc_src = None acc_dest = None if move.location_id.account_id: