Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4622 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 22
7123
5
серп. 24
47412
2
квіт. 24
2994
3
черв. 23
6721
2
черв. 23
5244