跳至内容
菜单
此问题已终结
1 回复
1630 查看

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
5月 25
2490
2
5月 25
5849
1
3月 25
1679
4
3月 25
4458
3
2月 25
5461