コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4286 ビュー

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
410
2
7月 25
582
1
7月 25
533
2
7月 25
557
1
6月 25
560