[FIX]: Selling a product with phantom BOM ignores chained locations and procurement gets stuck

lp bug: https://launchpad.net/bugs/700154 fixed

bzr revid: ksa@tinyerp.co.in-20110301101041-q0zfe5rlque3q6zs
This commit is contained in:
ksa (Open ERP)
2011-03-01 15:40:41 +05:30
parent 9c7afeb2c8
commit a9b4e238af
+2 -1
View File
@@ -95,9 +95,10 @@ class StockMove(osv.osv):
'location_id': move.location_dest_id.id,
'auto_validate': True,
'picking_id': False,
'state': 'waiting'
'state': 'confirmed'
})
for m in procurement_obj.search(cr, uid, [('move_id','=',move.id)], context):
wf_service.trg_validate(uid, 'procurement.order', m, 'button_confirm', cr)
wf_service.trg_validate(uid, 'procurement.order', m, 'button_wait_done', cr)
return True