콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5637 화면

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

아바타
취소
작성자

Thanks for your tip. 

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
0
3월 25
944
1
9월 24
3410
0
9월 24
970
2
10월 20
7389
1
9월 20
2498