Hi, I want to move fieldservice link from project in the portal as show below for users who cannot access backend.
To get here you go to Portal -> Project
I want to get the field service link above and place it on the same level as project -> (Portal -> Field Service).
My code is giving me a page not found error.
Here is the code:
@http.route("/my/projecting/project_sharing", type="http", auth="user", methods=['GET']) def render_project_backend_view(self, project_task_id): project = request.env
[
' project.project'].sudo().browse(project_task_id)
print('project_task_id', project)
if not project.exists() or not project.with_user( request.env.user)._check_project_sharing_access() :
return request.not_found ()
return request.render(
'portal_project_customizations.project_sharing_embed',
{'session_info': self._prepare_project_sharing_session_info(project)},
)
FieldService t>
Any assistance will be highly appreciated.
<xpath><t t-call="portal.portal_docs_entry">
<t t-set="title">FieldService </t>
<t t-set="url" t-value="'/my/projecting/{{ project_task_id }}/project_sharing'"/>
<t t-set="placeholder_count" t-value="'task_count'"/>
</ t>
</xpath>