Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5549 Vizualizări

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

Imagine profil
Abandonează
Autor

Thanks for your tip. 

Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 25
812
1
sept. 24
3266
0
sept. 24
871
2
oct. 20
7277
1
sept. 20
2351