Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5686 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 23
1465
0
sep. 23
1228
2
feb. 23
10488
6
okt. 23
21198
3
mrt. 24
8822