콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3609 화면

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
9월 17
2823
workflow transition 해결 완료
1
8월 17
3380
1
3월 16
3693
1
4월 16
4634
0
7월 15
3536