Skip to Content
Menu
This question has been flagged
2 Replies
9457 Rodiniai

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?

Portretas
Atmesti
Autorius Best Answer

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.

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
kov. 15
11341
2
lapkr. 23
3079
7
bal. 21
20423
1
spal. 20
4819
2
lapkr. 16
4186