[FIX]procurement exception when there is stock
lp bug: https://launchpad.net/bugs/691709 fixed bzr revid: ron@tinyerp.com-20101228130456-dhg25nxvc9igkigl
This commit is contained in:
parent
943cf9fc1f
commit
54ae65bc49
|
@ -735,11 +735,12 @@ 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'
|
||||
|
|
Loading…
Reference in New Issue