Skip to Content
Menu
This question has been flagged
3 Replies
2066 Rodiniai

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.

Portretas
Atmesti
Autorius

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!

Autorius Best Answer

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!

Portretas
Atmesti
Best Answer

two possible solutions:

1. using attribute "confirm" on view of button

2. create wizard to do as your needs

Portretas
Atmesti
Best Answer

I added directly in the view of the model.

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
kov. 25
1558
4
bal. 24
174443
0
gruod. 23
2314
5
liep. 25
228749
1
gruod. 22
3454