Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5663 Tampilan

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

Avatar
Buang
Penulis

Thanks for your tip. 

Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mar 25
961
1
Sep 24
3457
0
Sep 24
994
2
Okt 20
7409
1
Sep 20
2522