diff options
| author | Harry(OpenERP) <> | 2010-01-06 15:21:32 +0530 |
|---|---|---|
| committer | Jay (Open ERP) <jvo@tinyerp.com> | 2010-01-06 15:21:32 +0530 |
| commit | 90e95708cdebb79eb9c9fcd209e5f2fe962a3744 (patch) | |
| tree | bdd3ea52c619e51d22bd16ed24abd71e8a1a7653 | |
| parent | e389b5d89333dc4e8320e307c2a01f186c8f6d0e (diff) | |
[FIX] MRP : Accounting Entries were duplicated when processing production order with accounting configuration for locations.
lp bug: https://launchpad.net/bugs/398562 fixed
bzr revid: jvo@tinyerp.com-20100106095132-xrs7wml7ga2b61oy
| -rw-r--r-- | addons/mrp/mrp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 3d19e5ec744..7e71377df83 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -549,7 +549,7 @@ class mrp_production(osv.osv): #TODO Review materials in function in_prod and prod_end. def action_production_end(self, cr, uid, ids): - move_ids = [] +# move_ids = [] for production in self.browse(cr, uid, ids): for res in production.move_lines: for move in production.move_created_ids: @@ -557,7 +557,7 @@ class mrp_production(osv.osv): cr.execute('INSERT INTO stock_move_history_ids \ (parent_id, child_id) VALUES (%s,%s)', (res.id, move.id)) - move_ids.append(res.id) +# move_ids.append(res.id) vals= {'state':'confirmed'} new_moves = [x.id for x in production.move_created_ids] self.pool.get('stock.move').write(cr, uid, new_moves, vals) @@ -565,7 +565,7 @@ 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.write(cr, uid, ids, {'state': 'done'}) |
