Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1619 Zobrazení

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
Zrušit
Autor

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

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
kvě 25
2476
2
kvě 25
5817
1
bře 25
1648
4
bře 25
4441
3
úno 25
5431