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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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
Thanks, I will look into making a wizard
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
0
feb 25
|
2132 | |||
|
0
ene 25
|
1856 | |||
|
Field service upgrade
Resuelto
|
1
dic 24
|
2331 | ||
|
1
jun 22
|
6771 | |||
|
Field __last_update
Resuelto
|
1
feb 19
|
5716 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Confirmation box in odoo: https://goo.gl/qhWNZJ