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/sales_team/security/ir.model.access.csv | 7 +++ addons/sales_team/security/sales_team_security.xml | 53 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 addons/sales_team/security/ir.model.access.csv create mode 100644 addons/sales_team/security/sales_team_security.xml (limited to 'addons/sales_team/security') diff --git a/addons/sales_team/security/ir.model.access.csv b/addons/sales_team/security/ir.model.access.csv new file mode 100644 index 00000000..bbef30be --- /dev/null +++ b/addons/sales_team/security/ir.model.access.csv @@ -0,0 +1,7 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_crm_team,crm.team,model_crm_team,base.group_user,1,0,0,0 +access_crm_team_user,crm.team.user,model_crm_team,sales_team.group_sale_salesman,1,0,0,0 +access_crm_team_manager,crm.team.manager,model_crm_team,sales_team.group_sale_manager,1,1,1,1 +access_crm_tag,crm_tag,model_crm_tag,base.group_user,0,0,0,0 +access_crm_tag_salesman,crm_tag salesman,model_crm_tag,sales_team.group_sale_salesman,1,1,1,0 +access_crm_tag_manager,crm_tag manager,model_crm_tag,sales_team.group_sale_manager,1,1,1,1 diff --git a/addons/sales_team/security/sales_team_security.xml b/addons/sales_team/security/sales_team_security.xml new file mode 100644 index 00000000..a293b29b --- /dev/null +++ b/addons/sales_team/security/sales_team_security.xml @@ -0,0 +1,53 @@ + + + + Helps you handle your quotations, sale orders and invoicing. + 1 + + + + User: Own Documents Only + + + the user will have access to his own data in the sales application. + + + + User: All Documents + + + the user will have access to all records of everyone in the sales application. + + + + Administrator + the user will have an access to the sales configuration as well as statistic reports. + + + + + + + Configuration + + + + + + All Salesteam + + [(1,'=',1)] + + + + + Sales Team multi-company + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + + + + + + -- cgit v1.2.3