跳至內容
選單
此問題已被標幟
1 回覆
5705 瀏覽次數

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
1492
0
9月 23
1250
2
2月 23
10520
6
10月 23
21241
3
3月 24
8856