[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
This commit is contained in:
ksa (Open ERP) 2011-08-01 12:00:08 +05:30
parent fbbebc5273
commit 4faa4f053b
1 changed files with 1 additions and 0 deletions

View File

@ -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):