Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1722 Lượt xem

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,)



Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 25
2683
2
thg 5 25
6115
1
thg 3 25
1800
4
thg 3 25
4671
3
thg 2 25
5751