Skip to Content
Menu
This question has been flagged
1 Reply
4272 Views

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

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

Avatar
Discard
Related Posts Replies Views Activity
1
Apr 22
6765
5
Aug 24
46424
2
Apr 24
2447
3
Jun 23
5621
2
Jun 23
4610