Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
9434 Widoki

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?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
11300
2
lis 23
3049
7
kwi 21
20372
1
paź 20
4802
2
lis 16
4168