Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4475 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 22
6994
5
ago 24
47117
2
apr 24
2802
3
giu 23
6252
2
giu 23
5003