Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4302 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää

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

Thanks Man. It works. I appreciate.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 25
423
2
heinäk. 25
601
1
heinäk. 25
545
2
heinäk. 25
572
1
kesäk. 25
580