コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5568 ビュー

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
817
1
9月 24
3281
0
9月 24
878
2
10月 20
7278
1
9月 20
2353