Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
9449 Zobrazení

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?

Avatar
Zrušit
Autor Nejlepší odpověď

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.

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 15
11323
2
lis 23
3058
7
dub 21
20388
1
říj 20
4807
2
lis 16
4175