Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
4623 Vistas

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
Descartar

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

Mejor respuesta

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
Descartar
Autor

Thanks, I will look into making a wizard

Mejor respuesta

Display confirmation box

https://goo.gl/qhWNZJ


Avatar
Descartar
Autor

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

Publicaciones relacionadas Respuestas Vistas Actividad
0
feb 25
1432
0
ene 25
1202
1
dic 24
1571
1
jun 22
5731
1
feb 19
5059