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

in odoo 17, I want to group sales representatives in the contact list through the search panel.  but there is a bug,please help me.

 

I added the following code to the contact search view:

my code:
please see the comment



then I get the bug:

TypeError: inconsistent models in: res.partner() - res.users(2,)



الصورة الرمزية
إهمال
الكاتب

<searchpanel>
<field name="user_id" enable_counters="1"/>
</searchpanel>

أفضل إجابة

Just faced the same issue. Solution was

<searchpanel>

<field name="user_id" limit="20" hierarchize="0" select="one" enable_counters="1" icon="fa-users" />

</searchpanel>

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
مايو 25
2544
2
مايو 25
5924
1
مارس 25
1703
4
مارس 25
4531
3
فبراير 25
5534