Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4427 Prikazi

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

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
apr. 22
6933
5
avg. 24
46911
2
apr. 24
2706
3
jun. 23
6079
2
jun. 23
4890