Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
9423 Vizualizări

I want to put a "in" operator filter in search view. Basically an input field which will take values as 12,13,14 (a list) and will return all the records matching that list.

Can anyone help me with this?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hi, thanks for getting back. But that's not the solution I am looking for.

List you have provided in domain (i.e ['consu', 'product']) is static. But I need to provide an input field with the filter where user will give this comma separated list.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,
If you are looking how to use in operator in filter, see a example here,

<filter string="Products" name="consumable" domain="[('type', 'in', ['consu', 'product'])]" help="Products your store in the inventory"/>


For your case i think it will be better to use ilike



Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mar. 15
11299
2
nov. 23
3045
7
apr. 21
20364
1
oct. 20
4798
2
nov. 16
4166