Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
4618 Tampilan

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
Buang

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

Jawaban Terbai

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
Buang
Penulis

Thanks, I will look into making a wizard

Jawaban Terbai

Display confirmation box

https://goo.gl/qhWNZJ


Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
0
Feb 25
1430
0
Jan 25
1199
1
Des 24
1567
1
Jun 22
5723
1
Feb 19
5058