Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4467 Vues

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
avr. 22
6983
5
août 24
47095
2
avr. 24
2800
3
juin 23
6232
2
juin 23
4995