İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5992 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 23
2047
0
Eyl 23
1764
2
Haz 25
11284
6
Eki 23
22128
3
Mar 24
9553