跳至内容
菜单
此问题已终结
1 回复
5872 查看

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
1844
0
9月 23
1538
2
6月 25
10948
6
10月 23
21796
3
3月 24
9250