Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5899 Tampilan

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 !


Avatar
Buang
Jawaban Terbai

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()


Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
0
Sep 23
1859
0
Sep 23
1574
2
Jun 25
10984
6
Okt 23
21823
3
Mar 24
9284