From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/project/security/project_security.xml | 118 +++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 addons/project/security/project_security.xml (limited to 'addons/project/security/project_security.xml') diff --git a/addons/project/security/project_security.xml b/addons/project/security/project_security.xml new file mode 100644 index 00000000..befca629 --- /dev/null +++ b/addons/project/security/project_security.xml @@ -0,0 +1,118 @@ + + + + + Helps you manage your projects and tasks by tracking them, generating plannings, etc... + 3 + + + + User + + + + + + Administrator + + + + + + + Use Subtasks + + + + + Use Rating on Project + + + + + Use Recurring Tasks + + + + + + + + + + Project: multi-company + + [('company_id', 'in', company_ids)] + + + + Project: project manager: see all + + [(1, '=', 1)] + + + + + Project: Only invited users + + [ + '|', + ('privacy_visibility', '!=', 'followers'), + ('allowed_internal_user_ids', 'in', user.ids), + ] + + + + + Project/Task: multi-company + + [('company_id', 'in', company_ids)] + + + + Project/Task: employees: follow required for follower-only projects + + [ + '|', + ('project_id.privacy_visibility', '!=', 'followers'), + ('allowed_user_ids', 'in', user.ids), + ] + + + + + Project/Task: project manager: see all + + [(1, '=', 1)] + + + + + Task Analysis multi-company + + [('company_id', 'in', company_ids)] + + + + + Project: portal users: portal and following + + [ + ('privacy_visibility', '=', 'portal'), + ('allowed_portal_user_ids', 'in', user.ids), + ] + + + + + Project/Task: portal users: (portal and following project) or (portal and following task) + + [ + ('project_id.privacy_visibility', '=', 'portal'), + ('allowed_user_ids', 'in', user.ids), + ] + + + + + -- cgit v1.2.3