Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
1978 Переглядів

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?"/>


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 25
1313
4
квіт. 24
174160
0
груд. 23
2086
5
лип. 25
227787
1
груд. 22
3216