Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5589 Vistas

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
Mejor respuesta

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 ?

Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 23
1236
0
sept 23
1034
2
feb 23
10204
6
oct 23
20822
3
mar 24
8586