Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4348 Tampilan

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
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Apr 22
6855
5
Agu 24
46756
2
Apr 24
2595
3
Jun 23
5908
2
Jun 23
4787