Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4449 Представления

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
6974
5
авг. 24
47026
2
апр. 24
2769
3
июн. 23
6177
2
июн. 23
4966