Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4299 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ

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

Thanks Man. It works. I appreciate.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
420
2
thg 7 25
593
1
thg 7 25
542
2
thg 7 25
563
1
thg 6 25
569