Before this commit, the route used for the project sharing always used the old one. This commit changes the url to use the new one to avoid redirecting the old route to the new one each time the user goes to the Project Sharing feature. closes odoo/odoo#95677 X-original-commit: 73e6438f1b294ac274dffccc9c4b97dbfc0e3e50 Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
39 lines
2.0 KiB
XML
39 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="project_sharing_portal" name="Project Sharing View in Portal">
|
|
<t t-call="portal.frontend_layout">
|
|
<t t-set="no_footer" t-value="true"/>
|
|
<t t-call="project.project_sharing"/>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="project_sharing" name="Project Sharing View">
|
|
<!-- We need to forward the request lang to ensure that the lang set on the portal match the lang delivered -->
|
|
<iframe width="100%" height="100%" frameborder="0" t-attf-src="/{{ request.context['lang'] }}/my/projects/{{ str(project_id) }}/project_sharing{{ '?task_id=' + task_id if task_id else '' }}"/>
|
|
</template>
|
|
|
|
<template id="project_sharing_embed" name="Project Sharing View Embed">
|
|
<t t-call="web.layout">
|
|
<t t-set="head_project_sharing">
|
|
<script type="text/javascript">
|
|
odoo.__session_info__ = <t t-out="json.dumps(session_info)"/>;
|
|
// Prevent the menu_service to load anything. In an ideal world, Project Sharing assets would only contain
|
|
// what is genuinely necessary, and not the whole backend.
|
|
odoo.loadMenusPromise = Promise.resolve();
|
|
odoo.loadTemplatesPromise = fetch(`/web/webclient/qweb/${odoo.__session_info__.cache_hashes.qweb}?bundle=project.assets_qweb`).then(doc => doc.text());
|
|
</script>
|
|
<base target="_parent"/>
|
|
<t t-call-assets="web.assets_common" t-js="false"/>
|
|
<t t-call-assets="project.webclient" t-js="false"/>
|
|
<t t-call-assets="web.assets_common" t-css="false"/>
|
|
<t t-call-assets="project.webclient" t-css="false"/>
|
|
<t t-call="web.conditional_assets_tests"/>
|
|
</t>
|
|
<t t-set="head" t-value="head_project_sharing + (head or '')"/>
|
|
<t t-set="body_classname" t-value="'o_web_client o_project_sharing'"/>
|
|
</t>
|
|
</template>
|
|
|
|
</odoo>
|