Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
4612 Zobrazení

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

Avatar
Zrušit

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

Nejlepší odpověď

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

Avatar
Zrušit
Autor

Thanks, I will look into making a wizard

Nejlepší odpověď

Display confirmation box

https://goo.gl/qhWNZJ


Avatar
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
0
úno 25
1426
0
led 25
1196
1
pro 24
1562
1
čvn 22
5718
1
úno 19
5057