Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
1768 Lượt xem

i want to add a search bar here in the list 


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

ok

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

i did try to switch them on 

but it's not really doing what i want 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3370
0
thg 10 24
1041
6
thg 8 18
11041
3
thg 9 17
7840
1
thg 3 15
4613