跳至內容
選單
此問題已被標幟
4 回覆
4650 瀏覽次數

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
2月 25
1484
0
1月 25
1245
1
12月 24
1652
1
6月 22
5857
1
2月 19
5126