Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5887 Widoki

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 !


Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 23
1849
0
wrz 23
1546
2
cze 25
10958
6
paź 23
21805
3
mar 24
9259