Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3653 มุมมอง

Hy,

I don't know if it's a correct way to handle this but I would like to have multiple workflows and choose the correct one by code when creating the sale order. How it it possible?

regards

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Mind And Go,

You can use condition facility in workflows which can handle your muliple workflows .
if condition a=1:
    workflow 1 should run
if condition a=2:
    workflow 2 should run

https://doc.odoo.com/6.0/developer/3_9_Workflow_Business_Process/
This document might help you

อวตาร
ละทิ้ง
ผู้เขียน

Hy, tnaks for your answer. Do you mean that all the workflows must necessary be bound to the object and then choose whch one to execute? I was expecting to bind a specific workflow. Could you precise what you meant by workflow should run. Do you mean ```wf_service.trg_validate``` ?

ผู้เขียน คำตอบที่ดีที่สุด

Obviously there is no way to have multiple wokflow by object.

Yet we can add as many activities an transition we want in a sungle workflow

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 25
78
2
ก.ค. 25
395
1
ก.ค. 25
366
2
ก.ค. 25
385
1
มิ.ย. 25
408