تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3616 أدوات العرض

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 17
2832
workflow transition تم الحل
1
أغسطس 17
3385
1
مارس 16
3701
1
أبريل 16
4652
0
يوليو 15
3546