[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
This commit is contained in:
Xavier BOL (xbo)
2021-08-26 14:59:34 +02:00
parent 7ed6e9e16b
commit 0de3f3ace5
@@ -124,6 +124,7 @@
<field name="model_id" ref="project.model_project_task"/>
<field name="domain_force">[
('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 @@
<field name="model_id" ref="project.model_project_task"/>
<field name="domain_force">[
('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]),