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

Hello,

I want to execute a Server Action when the button to confirm sale is clicked.

Is it possible to do so ? Through Graphical Interface ?

In Odoo 9

Thanks you !


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

Yes, you can do it. You need to call the run function of "ir.actions.server" object from the confirm method.

Ex:

self.env.ref('module_name.xml_id_of_server_action').run()


Ảnh đại diện
Huỷ bỏ
Tác giả

Ok thank you for your answer ! I have one more question, where can i access the confirm method ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
1842
0
thg 9 23
1537
2
thg 6 25
10947
6
thg 10 23
21793
3
thg 3 24
9250