Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
4613 Widoki

How can I get a confirm box when changing a record field, for example changing a boolean?

I know you can make a button with a confirm attribute, but this is not the same.


Thanks

Awatar
Odrzuć

Confirmation box in odoo: https://goo.gl/qhWNZJ

Najlepsza odpowiedź

Hi, 

make an onchange function for this field.

In this onchnage function return a wizard. You need to develop your own confirmation wizard, since there is no default one for changing fields.

In that wizard add 2 buttons 'Yes', 'No', and a text like 'Are you sure'.

If 'yes' is pressed, do nothing. If 'no' is pressed, make the field for the initial state.

Hope, that helps

Awatar
Odrzuć
Autor

Thanks, I will look into making a wizard

Najlepsza odpowiedź

Display confirmation box

https://goo.gl/qhWNZJ


Awatar
Odrzuć
Autor

Please read the question. I'm not talking about creating a button.

Powiązane posty Odpowiedzi Widoki Czynność
0
lut 25
1426
0
sty 25
1196
1
gru 24
1563
1
cze 22
5718
1
lut 19
5058