Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1684 Представления

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
2559
2
мая 25
5940
1
мар. 25
1709
4
мар. 25
4551
3
февр. 25
5551