Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4468 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 22
6984
5
thg 8 24
47096
2
thg 4 24
2800
3
thg 6 23
6237
2
thg 6 23
4995