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

Hi,
I wanted to add Chatter function to a custom model in the portal view with 

<div class="container py-5">
<h1>Communication history</h1>
<t t-call="portal.message_thread">
<t t-set="object" t-value="asset"/>
</t>

</div>

Only the Chatter view is there the portal user can only recieve messges but cannot send messages. am i missing something here. any help would be appreciated.


Аватар
Відмінити
Найкраща відповідь

Hi ,


Your code with portal.message_thread is correct — it displays the chatter but, by default, portal users can only view messages.


To let them send messages, make sure your custom model inherits:


_inherit = ['mail.thread', 'mail.activity.mixin', 'portal.mixin']


Then, extend the portal QWeb template to include the chatter input box, since Odoo doesn’t enable message posting for portal users out of the box.


Hope it helps

Аватар
Відмінити
Автор

Thanks for the reply.
is there any way to add the chatter function without the access token. any links or tutorial regarding this would be helpful.

Related Posts Відповіді Переглядів Дія
0
жовт. 21
2557
0
бер. 21
2607
1
лют. 25
2120
2
груд. 24
3193
0
лист. 24
6905