Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4297 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer

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

Thanks Man. It works. I appreciate.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
aug. 25
415
2
jul. 25
587
1
jul. 25
541
2
jul. 25
561
1
jun. 25
565