Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4714 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 22
7233
5
aug. 24
47629
2
apr. 24
3127
3
iun. 23
7061
2
iun. 23
5430