[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) <xbo@odoo.com>
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user