[Fix] sale:[question/119827] Fix the problem Workflow problem : the order stays in pending state

bzr revid: sbh@tinyerp.com-20100813061054-5zwl7a11gbxyohun
This commit is contained in:
sbh (Open ERP)
2010-08-13 11:40:54 +05:30
parent 53cfaebe3f
commit 42a3ea2f01
+1
View File
@@ -703,6 +703,7 @@ class sale_order(osv.osv):
for proc_id in proc_ids:
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_confirm', cr)
wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_check', cr)
if order.state == 'shipping_except':
val['state'] = 'progress'