コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5884 ビュー

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 !


アバター
破棄
最善の回答

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


アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
0
9月 23
1848
0
9月 23
1544
2
6月 25
10957
6
10月 23
21803
3
3月 24
9259