Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
4855 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks, I will look into making a wizard

Câu trả lời hay nhất

Display confirmation box

https://goo.gl/qhWNZJ


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 25
1850
0
thg 1 25
1612
1
thg 12 24
2043
1
thg 6 22
6384
Field __last_update Đã xử lý
1
thg 2 19
5484