Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
5861 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Sept. 23
1836
0
Sept. 23
1530
2
Juni 25
10942
6
Okt. 23
21789
3
März 24
9244