İçereği Atla
Menü
Bu soru işaretlendi
4 Cevaplar
4620 Görünümler

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
Vazgeç

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

En İyi Yanıt

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
Vazgeç
Üretici

Thanks, I will look into making a wizard

En İyi Yanıt

Display confirmation box

https://goo.gl/qhWNZJ


Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Şub 25
1431
0
Oca 25
1200
1
Ara 24
1569
1
Haz 22
5723
1
Şub 19
5058