[FIX] project: readd token value in portal.message_thread template call

A change introduced in https://github.com/odoo/odoo/pull/84644 removed the 'token' variable from a call to
the `portal.message_thread` template, which created a bug where a portal user
trying to submit a comment to a task would encounter an "Access Denied" error.

This commit reverts that change.

Task-2832688

closes odoo/odoo#89643

X-original-commit: 29c9eb4d65280dc5b23c89207dd7c2caa6ced596
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
Signed-off-by: Xavier <xbo@odoo.com>
This commit is contained in:
Vincent Larcin
2022-04-25 21:32:52 +02:00
parent 4c69f52cef
commit cb78740bbb
@@ -310,7 +310,9 @@
<div class="mt32" id="task_chat" data-anchor="true">
<h4><strong>Message and communication history</strong></h4>
<t t-call="portal.message_thread"/>
<t t-call="portal.message_thread">
<t t-set="token" t-value="task.access_token"/>
</t>
</div>
</div>
</div>