跳至内容
菜单
此问题已终结
1 回复
4422 查看

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')

形象
丢弃
相关帖文 回复 查看 活动
1
4月 22
6932
5
8月 24
46897
2
4月 24
2692
3
6月 23
6060
2
6月 23
4873