Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
5891 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
syysk. 23
1854
0
syysk. 23
1552
2
kesäk. 25
10976
6
lokak. 23
21810
3
maalisk. 24
9270