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

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
1323
4
4月 24
174176
0
12月 23
2105
5
7月 25
227853
1
12月 22
3221