Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5940 Vues

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
Ignorer
Meilleure réponse

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

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

Publications associées Réponses Vues Activité
0
sept. 23
1923
0
sept. 23
1612
2
juin 25
11065
6
oct. 23
21922
3
mars 24
9383