From 726f3ca1698ce57ab6c6f6dfa0eda9e7cd343e96 Mon Sep 17 00:00:00 2001 From: "pawan.sharma" Date: Fri, 7 Oct 2022 18:24:12 +0530 Subject: [PATCH] add internaluser condition in project user secruity group --- cor_custom/security/cor_custom_security.xml | 128 ++++++++++++-------- 1 file changed, 76 insertions(+), 52 deletions(-) diff --git a/cor_custom/security/cor_custom_security.xml b/cor_custom/security/cor_custom_security.xml index 8ecd9a9..fe044f1 100755 --- a/cor_custom/security/cor_custom_security.xml +++ b/cor_custom/security/cor_custom_security.xml @@ -1,24 +1,46 @@ + + + + + + + + + Project: Only invited users + + [ + '|', '|', + ('privacy_visibility', '!=', 'followers'), + ('allowed_internal_user_ids', 'in', user.ids), + ('sale_line_employee_ids.employee_id.user_id', 'in', user.ids), + ] + + + + + + - + + Show HR Menu + Show HR Menu related user group + + --> - + - + @@ -50,12 +72,13 @@ ('user_id', '=', user.id), ('project_id', '!=', False), '|', '|','|', - ('project_id.privacy_visibility', '!=', 'followers'), - ('project_id.allowed_internal_user_ids', 'in', user.ids), - ('task_id.allowed_user_ids', 'in', user.ids), - ('project_id.sale_line_employee_ids.employee_id.user_id', 'in', user.ids), + ('project_id.privacy_visibility', '!=', 'followers'), + ('project_id.allowed_internal_user_ids', 'in', user.ids), + ('task_id.allowed_user_ids', 'in', user.ids), + ('project_id.sale_line_employee_ids.employee_id.user_id', 'in', user.ids), - ] + ] + @@ -64,20 +87,21 @@ - + account.analytic.line.timesheet.approver - + [ ('project_id', '!=', False), '|','|', - ('project_id.privacy_visibility', '!=', 'followers'), - ('project_id.allowed_internal_user_ids', 'in', user.ids), - ('project_id.sale_line_employee_ids.employee_id.user_id', 'in', user.ids), - ] - + ('project_id.privacy_visibility', '!=', 'followers'), + ('project_id.allowed_internal_user_ids', 'in', user.ids), + ('project_id.sale_line_employee_ids.employee_id.user_id', 'in', user.ids), + ] + + - + + Project/Task: project manager: see all + + [(1, '=', 1)] + + --> Project: view Consultant: Own User @@ -137,12 +161,12 @@ - +