تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4472 أدوات العرض

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
أبريل 22
6991
5
أغسطس 24
47106
2
أبريل 24
2801
3
يونيو 23
6240
2
يونيو 23
5001