Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4464 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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.

Imagine profil
Abandonează

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

Thanks Man. It works. I appreciate.

Related Posts Răspunsuri Vizualizări Activitate
2
sept. 25
596
1
sept. 25
804
1
aug. 25
889
2
iul. 25
1035
1
iul. 25
929