Skip to Content
Menú
This question has been flagged
1 Respondre
5881 Vistes

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
Descartar
Best Answer

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
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
0
de set. 23
1846
0
de set. 23
1540
2
de juny 25
10951
6
d’oct. 23
21798
3
de març 24
9252