[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user