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

Hello. Is it possible to add search filters to a custom dashboard? I'm using Odoo 12 CE.

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

Thanks for your tip. 

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

Hello alec vinent,

No, It is not possible odoo search in your custom template. you have to do some customisation in dashboard.

Here I am giving some hints:

- "myInput" is my custom input place in xml file.

- In Js you have to write the keyup event for "myInput".
$cover_modal.find('#myInput').on('keyup', function()
{
var value = $cover_modal.find('#myInput').val().toLowerCase();
$cover_modal.find('tr').filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
- $cover_modal.find('tr'): This my custom div on which search event is executed.

Thanks & Regards,

Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
955
1
thg 9 24
3446
0
thg 9 24
984
2
thg 10 20
7404
1
thg 9 20
2522