跳至內容
選單
此問題已被標幟
2 回覆
9420 瀏覽次數

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
11299
2
11月 23
3041
7
4月 21
20362
1
10月 20
4798
2
11月 16
4165