Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5713 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
0
set 23
1527
0
set 23
1281
2
feb 23
10566
6
ott 23
21293
3
mar 24
8883