[FIX] MRP : Accounting Entries were duplicated when processing production order with accounting configuration for locations.

bzr revid: jvo@tinyerp.com-20100107063325-tnhlkfn0obojv0my
This commit is contained in:
Jay (Open ERP) 2010-01-07 12:03:25 +05:30
parent 8e6746a794
commit ed1d414dd7
1 changed files with 2 additions and 2 deletions

View File

@ -565,9 +565,9 @@ class mrp_production(osv.osv):
self.write(cr, uid, [production.id],
{'date_finnished': time.strftime('%Y-%m-%d %H:%M:%S')})
self.pool.get('stock.move').check_assign(cr, uid, new_moves)
# self.pool.get('stock.move').action_done(cr, uid, new_moves)
self.pool.get('stock.move').action_done(cr, uid, new_moves)
self._costs_generate(cr, uid, production)
self.pool.get('stock.move').action_done(cr, uid, move_ids)
# self.pool.get('stock.move').action_done(cr, uid, move_ids)
self.write(cr, uid, ids, {'state': 'done'})
return True