コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
9426 ビュー

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
3047
7
4月 21
20365
1
10月 20
4798
2
11月 16
4166