跳至內容
選單
此問題已被標幟
1 回覆
1674 瀏覽次數

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
2524
2
5月 25
5892
1
3月 25
1696
4
3月 25
4519
3
2月 25
5523