Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5981 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
0
zář 23
2045
0
zář 23
1758
2
čvn 25
11275
6
říj 23
22121
3
bře 24
9549