Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4440 มุมมอง

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
586
1
ก.ย. 25
785
1
ส.ค. 25
883
2
ก.ค. 25
1023
1
ก.ค. 25
916