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

I've used the property confirm in several buttons in XML, and it works great. Now I was wondering if I can do the same in a kanban view (Qweb). I created a button in a kanban view, but the attribute confirm="Are you sure?" doesn't work.

Can I achieve this?

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

Did you find the solution?

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

I think that the solution could be a wizard, not a fast solution but could be keep parametric, something like open dialog window, naming the button and the action that will be evaluated for confirm, maybe I will create if nothing on apps database...

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello All,

I also tried this but not worked, But i have analyse that it's happening due to kanban click class.

There is a class in kanban form oe_kanban_global_click. When you click on anywhere in kanban (not clicked in action link like View Sales Order, Opportunities in contacts kanban) it's open form view of that record. So you need to improve that behavior.

You can do the JS stuff to achieve this.

add custom class in button and on click of that button alert using JS.

I hope this will helpful for you.

Regards

Haresh Kansara

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 10 18
9325
1
thg 8 17
22629
0
thg 2 21
2729
2
thg 1 21
6466
1
thg 4 25
11260