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

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>

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
พ.ค. 25
2660
2
พ.ค. 25
6063
1
มี.ค. 25
1776
4
มี.ค. 25
4636
3
ก.พ. 25
5664