Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4579 มุมมอง

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
7112
Select multiple elements with XPath แก้ไขแล้ว
5
ส.ค. 24
47363
2
เม.ย. 24
2950
3
มิ.ย. 23
6628
2
มิ.ย. 23
5209