Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
5868 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
0
sep. 23
1840
0
sep. 23
1533
2
jun. 25
10946
6
okt. 23
21792
3
mar. 24
9249