Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5986 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
2045
0
thg 9 23
1761
2
thg 6 25
11281
6
thg 10 23
22122
3
thg 3 24
9551