From 4faa4f053b19d2fe165275395af9ab628efc9152 Mon Sep 17 00:00:00 2001 From: "ksa (Open ERP)" Date: Mon, 1 Aug 2011 12:00:08 +0530 Subject: [PATCH] [FIX]:Automatic movement for one location to another location of production order lp bug: https://launchpad.net/bugs/807521 fixed bzr revid: ksa@tinyerp.co.in-20110801063008-2rdd3vz646j4cz2t --- addons/mrp/stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mrp/stock.py b/addons/mrp/stock.py index 0c1454edf98..6e66fb57f25 100644 --- a/addons/mrp/stock.py +++ b/addons/mrp/stock.py @@ -112,6 +112,7 @@ class StockMove(osv.osv): production_obj = self.pool.get('mrp.production') wf_service = netsvc.LocalService("workflow") for move in self.browse(cr, uid, ids): + move.action_confirm(context) new_moves = super(StockMove, self).action_consume(cr, uid, [move.id], product_qty, location_id, context=context) production_ids = production_obj.search(cr, uid, [('move_lines', 'in', [move.id])]) for prod in production_obj.browse(cr, uid, production_ids, context=context):