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

I created two different workflows in a single module. When i update the module and restart the server, second workflow is overwriting the first one. Can anyone please tell what could be the reason? or how to achieve it?

Note : I am having two different models with their correspoding workflows in single module.

 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hi Guys, I have fixed the issue. Problem was with workflow activity and transition ids. I was using same workflow.activity and workflow.transition id's in both the workflows. So latest one was overwriting former one. When i changed the ids, issue got fixed.

Thanks.

 

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

Hi Shiv Modi,

You can use condition facility in workflows which can handle your muliple workflows .
if condition a=1:
    wf_service.validate().
if condition a=2:
    wf_service.validate()

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

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

Hi Vasanth, Thanks for answer, but my scenario is different. You solution will implement if i am having two workflows on signle model but my case is two different models with their correspoding workflows.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 17
2710
workflow transition แก้ไขแล้ว
1
ส.ค. 17
3255
1
มี.ค. 16
3567
Odoo v8 custom model with workflow error แก้ไขแล้ว
1
เม.ย. 16
4551
0
ก.ค. 15
3471