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

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?

Аватар
Відмінити
Автор Найкраща відповідь

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
бер. 15
11316
2
лист. 23
3056
7
квіт. 21
20383
1
жовт. 20
4804
change search filter Вирішено
2
лист. 16
4170