Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4444 Переглядів

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.

Аватар
Відмінити
Автор Найкраща відповідь

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

Thanks Man. It works. I appreciate.

Related Posts Відповіді Переглядів Дія
Odoo + amazon connector Вирішено
2
вер. 25
587
1
вер. 25
789
1
серп. 25
884
2
лип. 25
1024
1
лип. 25
916