Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
2011 Näkymät

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.

Avatar
Hylkää
Tekijä

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!

Tekijä Paras vastaus

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!

Avatar
Hylkää
Paras vastaus

two possible solutions:

1. using attribute "confirm" on view of button

2. create wizard to do as your needs

Avatar
Hylkää
Paras vastaus

I added directly in the view of the model.

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


Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 25
1376
4
huhtik. 24
174289
0
jouluk. 23
2172
5
heinäk. 25
228072
1
jouluk. 22
3288