Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1686 Vues

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



Avatar
Ignorer
Auteur

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

Meilleure réponse

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>

Avatar
Ignorer
Publications associées Réponses Vues Activité
4
mai 25
2569
2
mai 25
5953
1
mars 25
1715
4
mars 25
4561
3
févr. 25
5568