Skip to Content
मेन्यू
This question has been flagged

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


Avatar
Discard
Author

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

Related Posts Replies Views Activity
0
सित॰ 23
2048
0
सित॰ 23
1766
2
जून 25
11287
6
अक्तू॰ 23
22130
3
मार्च 24
9555