Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
1807 Переглядів

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



Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 15
3407
0
жовт. 24
1106
6
серп. 18
11083
3
вер. 17
7840
1
бер. 15
4645