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

How to change the state of model by sending workflow transition signal form other model in Odoo9 ?

For example Model A and Model B have some state same like start, progress, pending and close. So in Model A when state change to start or progress the also a same transition signal send to Model B to change its state?
Thanks in advance for any help.

아바타
취소
작성자 베스트 답변

I have solved my problem.
Here is code:
self.env["module.model"].browse(id).signal_workflow("close")
id should be same model for which signal is send and "close" is signal.

아바타
취소

good i am having the same issue and your solution worked nice

Thanks Man. It works. I appreciate.

관련 게시물 답글 화면 활동
1
8월 25
430
2
7월 25
607
1
7월 25
551
2
7월 25
578
1
6월 25
591