From f50ad369ac4cbb09704f84190f4a5e9945990139 Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Thu, 6 Jan 2022 13:08:20 +0000 Subject: [PATCH] [FIX] project: show 'View Task' in subtask when same project than parent Before this commit, when the a subtask is in the same project than the parent one and the internal user has manually set the project to see this task in the main kanban view of tasks of the project. In project sharing view, the collaborator cannot see the 'View Task' button in the sub list view of subtasks shown in the form view of the parent one. This commit fixes it to shown the button when the subtask is in the same project than the parent one. Steps to reproduce: ================== 1) Create a Project A 2) Create a Task T in the Project A 3) Add a subtask in T and set the project A in the subtask 4) Share in edit mode the project A to a portal user 5) Log out and log in as the portal user 6) Go to the Project A to see the kanban view of tasks in project sharing feature. 7) Go to the task T and see the subtasks list view. Expected Behaviour: ================== The 'View Task' should be shown for this subtask because the subtask is in the same project than the parent one. Actual Behaviour: ================ This button is not shown. Bug found during the testing of the task-2648955 closes odoo/odoo#82383 X-original-commit: ddafb7fa5aff30e2cb16dcdcb5cdbd44397de126 Signed-off-by: Laurent Stukkens (ltu) --- addons/project/views/project_sharing_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/views/project_sharing_views.xml b/addons/project/views/project_sharing_views.xml index 2b6e452add4..810fa49a886 100644 --- a/addons/project/views/project_sharing_views.xml +++ b/addons/project/views/project_sharing_views.xml @@ -215,7 +215,7 @@