Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
4655 Vues

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
Ignorer

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

Meilleure réponse

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
Ignorer
Auteur

Thanks, I will look into making a wizard

Meilleure réponse

Display confirmation box

https://goo.gl/qhWNZJ


Avatar
Ignorer
Auteur

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

Publications associées Réponses Vues Activité
0
févr. 25
1504
0
janv. 25
1257
1
déc. 24
1667
1
juin 22
5876
1
févr. 19
5155