Skip to Content
Menu
This question has been flagged
1 Atsakyti
5892 Rodiniai

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 !


Portretas
Atmesti
Best Answer

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


Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
0
rugs. 23
1854
0
rugs. 23
1552
2
birž. 25
10976
6
spal. 23
21810
3
kov. 24
9270