From 0de3f3ace5bdae562f33d30f137d75fe9aeeb357 Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Mon, 23 Aug 2021 08:47:52 +0200 Subject: [PATCH] [IMP] project: allow portal user to see only active tasks Before this commit, the portal user could see archived tasks by filtering the tasks with the search view. This commit adds a condition in the domain of the `ir.rule` for this user to allow him to see only the active tasks. task-2379518 closes #73341 --- addons/project/security/project_security.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/project/security/project_security.xml b/addons/project/security/project_security.xml index 83e748dacd6..e66dde35ba5 100644 --- a/addons/project/security/project_security.xml +++ b/addons/project/security/project_security.xml @@ -124,6 +124,7 @@ [ ('project_id.privacy_visibility', '=', 'portal'), + ('active', '=', True), '|', ('project_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]), ('message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]), @@ -140,6 +141,7 @@ [ ('project_id.privacy_visibility', '=', 'portal'), + ('active', '=', True), '|', ('project_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]), ('message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),