Skip to Content
Menú
This question has been flagged
1 Respondre
4303 Vistes

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
Descartar
Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’abr. 22
6795
5
d’ag. 24
46616
2
d’abr. 24
2544
3
de juny 23
5766
2
de juny 23
4706