Skip to Content
Menu
This question has been flagged
1 Odpoveď
4443 Zobrazenia

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
Zrušiť
Best Answer

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
apr 22
6959
5
aug 24
46994
2
apr 24
2752
3
jún 23
6149
2
jún 23
4953