[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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user