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

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

아바타
취소
관련 게시물 답글 화면 활동
1
8월 25
128
2
7월 25
402
1
7월 25
374
2
7월 25
390
1
6월 25
431