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

In odoo, with a Python "raise warning" command I am able to launch a window that warns me of any error in a form. But until I fix that bug I can't save the form.

Now I want to create a simple confirmation window, that if I hit OK it will let me save the form.

Is there a command for this in Python?

Thank you very much.

形象
丢弃
编写者

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

编写者 最佳答案

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

形象
丢弃
最佳答案

two possible solutions:

1. using attribute "confirm" on view of button

2. create wizard to do as your needs

形象
丢弃
最佳答案

I added directly in the view of the model.

<button name="buttonClickEvent" string="Approve" type="object" class="oe_highlight"
confirm="Proceed to Approve Call?"/>


形象
丢弃
相关帖文 回复 查看 活动
0
3月 25
1315
4
4月 24
174163
0
12月 23
2087
5
7月 25
227793
1
12月 22
3217