[FIX]procurement exception when there is stock

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

bzr revid: ron@tinyerp.com-20101231124748-dsl8xcr1nslppgqp
This commit is contained in:
ron@tinyerp.com 2010-12-31 18:17:48 +05:30
parent 29cf676c65
commit bf00ee7f5c
1 changed files with 3 additions and 2 deletions

View File

@ -739,12 +739,13 @@ class sale_order(osv.osv):
proc_obj.write(cr, uid, [proc_id], {'product_qty': mov.product_qty, 'product_uos_qty': mov.product_uos_qty})
val = {}
for proc_id in proc_ids:
wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_confirm', cr)
if picking_id:
wf_service.trg_validate(uid, 'stock.picking', picking_id, 'button_confirm', cr)
for proc_id in proc_ids:
wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_confirm', cr)
if order.state == 'shipping_except':
val['state'] = 'progress'
val['shipped'] = False