Skip to Content
Menu
This question has been flagged
1 Atsakyti
4587 Rodiniai

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

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
bal. 22
7112
5
rugp. 24
47374
2
bal. 24
2954
3
birž. 23
6646
2
birž. 23
5216