Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
4627 Vizualizări

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

Imagine profil
Abandonează

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

Thanks, I will look into making a wizard

Cel mai bun răspuns

Display confirmation box

https://goo.gl/qhWNZJ


Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
0
feb. 25
1433
0
ian. 25
1204
1
dec. 24
1574
1
iun. 22
5738
1
feb. 19
5067