From 4e25eccad520629098f01ee606c7dceacabbad41 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 17 Sep 2013 08:40:27 +0200 Subject: [PATCH] [REV] revert of revision 9215: we don't want to trigger directly the procurement becaus e doing so means we are always in 'make_to_order' mode, and we want it by default (that's why mrp_jit is installed by default) by not mandatory. bzr revid: qdp-launchpad@openerp.com-20130917064027-i97zvgmw0ns3t5ll --- addons/stock/stock.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index f705d52d20f..50e24e71536 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1603,14 +1603,8 @@ class stock_move(osv.osv): if todo: self.action_confirm(cr, uid, todo, context=context) - procu_todo = [] pickings = set() for move in self.browse(cr, uid, ids, context=context): - #if procurement associated to move, run check on procurement otherwise we have to wait for scheduler - #to run and put it in done and this break the sale workflow - if move.procurement_id: - procu_todo.append(move.procurement_id.id) - if move.picking_id: pickings.add(move.picking_id.id) qty = move.product_qty @@ -1639,8 +1633,6 @@ class stock_move(osv.osv): if not other_upstream_move_ids and move.move_dest_id.state in ('waiting', 'confirmed'): self.action_assign(cr, uid, [move.move_dest_id.id], context=context) self.write(cr, uid, ids, {'state': 'done', 'date': time.strftime(DEFAULT_SERVER_DATETIME_FORMAT)}, context=context) - #run check on procurement - self.pool.get("procurement.order").check(cr, uid, procu_todo, context=context) return True def unlink(self, cr, uid, ids, context=None):