Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1691 Переглядів

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
2579
2
трав. 25
5959
1
бер. 25
1719
4
бер. 25
4570
3
лют. 25
5576