Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
548 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 21
2569
0
thg 3 21
2615
1
thg 2 25
2133
2
thg 12 24
3216
0
thg 11 24
7045