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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
2
3월 15
|
11358 | ||
|
2
11월 23
|
3129 | ||
|
7
4월 21
|
20503 | ||
|
1
10월 20
|
4876 | ||
change search filter
해결 완료
|
|
2
11월 16
|
4223 |