Odoo Help

1

Sending workflow signal from another model(Odoo9)

By
Ubaid ur Rehman
on 8/18/16, 11:56 PM 366 views

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.

1
Ubaid ur Rehman
On 9/23/16, 7:17 AM

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.

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

sharjeel ali shaukat
on 9/23/16, 7:22 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 8/18/16, 11:56 PM
Seen: 366 times
Last updated: 9/23/16, 7:21 AM