跳至內容
選單
此問題已被標幟
1 回覆
4473 瀏覽次數

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
6991
5
8月 24
47106
2
4月 24
2801
3
6月 23
6240
2
6月 23
5001