İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
9451 Görünümler

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?

Avatar
Vazgeç
Üretici En İyi Yanıt

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.

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Mar 15
11328
2
Kas 23
3067
7
Nis 21
20403
1
Eki 20
4813
2
Kas 16
4177