Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4463 Ansichten

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.

Avatar
Verwerfen
Autor Beste Antwort

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.

Avatar
Verwerfen

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

Thanks Man. It works. I appreciate.

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Sept. 25
595
1
Sept. 25
804
1
Aug. 25
888
2
Juli 25
1033
1
Juli 25
927