跳至內容
選單
此問題已被標幟
4 回覆
1758 瀏覽次數

i want to add a search bar here in the list 


頭像
捨棄
最佳答案

Hi,


To add a search bar in a list view, add the <search> tag with the appropriate attributes inside the <tree> tag. You can customize the search behavior by adding filters, groups, and other search options within the <search> tag.


For example, use the following code:

<search>
    <field name="field_to_search_1"/>
    <field name="field_to_search_2"/>
    <filter name="filter_name" string="Filter Label" domain="[('field_name', 'operator', value)]"/>
    <group expand="0" string="Group By">
        <filter name="group_by_field" context="{'group_by': 'field_name'}"/>
    </group>
</search>



Hope it helps.


頭像
捨棄
最佳答案

ok

頭像
捨棄
作者 最佳答案

i did try to switch them on 

but it's not really doing what i want 

頭像
捨棄
最佳答案

toggle to studio->click on views in the top right. And enable the search view. the search base will came



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 15
3356
0
10月 24
1035
6
8月 18
11001
3
9月 17
7840
1
3月 15
4573