Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5889 Vizualizări

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 !


Imagine profil
Abandonează
Cel mai bun răspuns

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()


Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
0
sept. 23
1849
0
sept. 23
1547
2
iun. 25
10963
6
oct. 23
21806
3
mar. 24
9262