Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5995 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
2048
0
sept. 23
1766
2
iun. 25
11286
6
oct. 23
22129
3
mar. 24
9555