From 5bddc1eac963aef2d01b0ed9eb79014df57f5dc5 Mon Sep 17 00:00:00 2001 From: damr Date: Wed, 23 Nov 2022 08:52:30 +0000 Subject: [PATCH] [FIX] project: fix traceback when opening a task in shared project When a project is shared as editable and the url keeps the access token, it causes a traceback when a task is open. This is due to owl trying to evaluate a the access token value as a string. This commit fix it by wrapping the value so the owl component can evaluate it and get the access token value as a value and not as a string. task-3073965 closes odoo/odoo#109351 X-original-commit: 865a45bd170ad15a10b3a3572471f4bf6b5648e4 Signed-off-by: Xavier Bol (xbo) --- .../project_sharing/views/form/project_sharing_form_compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/static/src/project_sharing/views/form/project_sharing_form_compiler.js b/addons/project/static/src/project_sharing/views/form/project_sharing_form_compiler.js index 1803ef19420..07ab607630f 100644 --- a/addons/project/static/src/project_sharing/views/form/project_sharing_form_compiler.js +++ b/addons/project/static/src/project_sharing/views/form/project_sharing_form_compiler.js @@ -18,7 +18,7 @@ function compileChatter(node, params) { const chatterContainerXml = createElement('ChatterContainer'); const parentURLQuery = new URLSearchParams(window.parent.location.search); setAttributes(chatterContainerXml, { - token: parentURLQuery.get('access_token') || '', + token: `'${parentURLQuery.get('access_token')}'` || '', resModel: params.resModel, resId: params.resId, projectSharingId: params.projectSharingId,