Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
4633 Представления

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.

Related Posts Ответы Просмотры Активность
0
февр. 25
1438
0
янв. 25
1206
1
дек. 24
1582
1
июн. 22
5755
1
февр. 19
5075