تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
4652 أدوات العرض

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

الصورة الرمزية
إهمال

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

أفضل إجابة

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

أفضل إجابة

Display confirmation box

https://goo.gl/qhWNZJ


الصورة الرمزية
إهمال
الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 25
1496
0
يناير 25
1252
1
ديسمبر 24
1661
1
يونيو 22
5864
Field __last_update تم الحل
1
فبراير 19
5132