[IMP] project: add project id to task values in portal

This commit adds the id of the project to the task values sent to the front end in the portal.
This allows us to easily know which project the task is in from the front end and direct the user to the right documents pages.

Enterprise: odoo/enterprise#30838
Upgrade: odoo/upgrade#3749

Task-2944247

closes odoo/odoo#99151

Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
Vincent Larcin
2022-09-09 14:41:05 +02:00
parent 2df1d0d7d5
commit 158b5d2c77
+2
View File
@@ -248,6 +248,8 @@ class ProjectCustomerPortal(CustomerPortal):
'project_accessible': project_accessible,
'task_link_section': [],
}
if project:
values['project_id'] = project.id
return self._get_page_view_values(task, access_token, values, history, False, **kwargs)
def _task_get_searchbar_sortings(self, milestones_allowed):