İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4470 Görünümler

Hello,

I have added some information in res.partner modules, I would like to select a partner which belongs specific categories.

I can add a domain on the field, but I have to put the id of the category.

e.g

<field name="groupe" placeholder="Groupe" domain="[('category_id', '=', 19)]"/>

Is it possible to replace this by a search on string (or any information from res_partner_category)?

Thanks,

David

Avatar
Vazgeç
En İyi Yanıt

yes, try ('category_id.name', '=', 'what you want')

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 22
6985
5
Ağu 24
47098
2
Nis 24
2801
3
Haz 23
6240
2
Haz 23
4997