Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4260 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit

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

Thanks Man. It works. I appreciate.

Related Posts Odpovědi Zobrazení Aktivita
1
srp 25
402
2
čvc 25
571
1
čvc 25
522
2
čvc 25
547
1
čvn 25
545