Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4350 Zobrazení

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šit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 22
6856
5
srp 24
46758
2
dub 24
2595
3
čvn 23
5910
2
čvn 23
4788