From 1ca3b3df3421961caec3b747a364071c80f5c7da Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 17:14:58 +0700 Subject: initial commit --- sh_helpdesk/security/ir.model.access.csv | 37 +++++++++++ sh_helpdesk/security/send_mail_security.xml | 13 ++++ sh_helpdesk/security/sh_helpdesk_security.xml | 92 +++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 sh_helpdesk/security/ir.model.access.csv create mode 100644 sh_helpdesk/security/send_mail_security.xml create mode 100644 sh_helpdesk/security/sh_helpdesk_security.xml (limited to 'sh_helpdesk/security') diff --git a/sh_helpdesk/security/ir.model.access.csv b/sh_helpdesk/security/ir.model.access.csv new file mode 100644 index 0000000..6a44589 --- /dev/null +++ b/sh_helpdesk/security/ir.model.access.csv @@ -0,0 +1,37 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_helpdesk_team_manager,access_helpdesk_team_manager,model_helpdesk_team,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_team_leader,access_helpdesk_team_leader,model_helpdesk_team,sh_helpdesk.helpdesk_group_team_leader,1,0,0,0 +access_helpdesk_team_user,access_helpdesk_team_user,model_helpdesk_team,sh_helpdesk.helpdesk_group_user,1,0,0,0 +access_helpdesk_ticket_type_manager,access_helpdesk_ticket_type_manager,model_helpdesk_ticket_type,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_ticket_type_leader,access_helpdesk_ticket_type_leader,model_helpdesk_ticket_type,sh_helpdesk.helpdesk_group_team_leader,1,0,0,0 +access_helpdesk_ticket_type_user,access_helpdesk_ticket_type_user,model_helpdesk_ticket_type,sh_helpdesk.helpdesk_group_user,1,0,0,0 +access_helpdesk_sub_type_manager,access_helpdesk_sub_type_manager,model_helpdesk_sub_type,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_sub_type_leader,access_helpdesk_sub_type_leader,model_helpdesk_sub_type,sh_helpdesk.helpdesk_group_team_leader,1,0,0,0 +access_helpdesk_sub_type_user,access_helpdesk_sub_type_user,model_helpdesk_sub_type,sh_helpdesk.helpdesk_group_user,1,0,0,0 +access_helpdesk_tags_manager,access_helpdesk_tags_manager,model_helpdesk_tags,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_tags_leader,access_helpdesk_tags_leader,model_helpdesk_tags,sh_helpdesk.helpdesk_group_team_leader,1,0,0,0 +access_helpdesk_tags_user,access_helpdesk_tags_user,model_helpdesk_tags,sh_helpdesk.helpdesk_group_user,1,0,0,0 +access_helpdesk_stages_manager,access_helpdesk_stages_manager,model_helpdesk_stages,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_stages_leader,access_helpdesk_stages_leader,model_helpdesk_stages,sh_helpdesk.helpdesk_group_team_leader,1,1,1,0 +access_helpdesk_stages_user,access_helpdesk_stages_user,model_helpdesk_stages,sh_helpdesk.helpdesk_group_user,1,1,1,0 +access_helpdesk_category_manager,access_helpdesk_category_manager,model_helpdesk_category,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_category_leader,access_helpdesk_category_leader,model_helpdesk_category,sh_helpdesk.helpdesk_group_team_leader,1,0,0,0 +access_helpdesk_category_user,access_helpdesk_category_user,model_helpdesk_category,sh_helpdesk.helpdesk_group_user,1,0,0,0 +access_helpdesk_subcategory_manager,access_helpdesk_subcategory_manager,model_helpdesk_subcategory,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_subcategory_leader,access_helpdesk_subcategory_leader,model_helpdesk_subcategory,sh_helpdesk.helpdesk_group_team_leader,1,0,0,0 +access_helpdesk_subcategory_user,access_helpdesk_subcategory_user,model_helpdesk_subcategory,sh_helpdesk.helpdesk_group_user,1,0,0,0 +access_helpdesk_priority_manager,access_helpdesk_priority_manager,model_helpdesk_priority,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_priority_leader,access_helpdesk_priority_leader,model_helpdesk_priority,sh_helpdesk.helpdesk_group_team_leader,1,0,0,0 +access_helpdesk_priority_user,access_helpdesk_priority_user,model_helpdesk_priority,sh_helpdesk.helpdesk_group_user,1,0,0,0 +access_helpdesk_ticket_manager,access_helpdesk_ticket_manager,model_helpdesk_ticket,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_ticket_leader,access_helpdesk_ticket_leader,model_helpdesk_ticket,sh_helpdesk.helpdesk_group_team_leader,1,1,1,0 +access_helpdesk_ticket_user,access_helpdesk_ticket_user,model_helpdesk_ticket,sh_helpdesk.helpdesk_group_user,1,1,1,0 +access_helpdesk_dashboard_manager,access_helpdesk_dashboard_manager,model_ticket_dashboard,sh_helpdesk.helpdesk_group_manager,1,1,1,1 +access_helpdesk_dashboard_leader,access_helpdesk_dashboard_leader,model_ticket_dashboard,helpdesk_group_team_leader,1,1,1,1 +access_helpdesk_dashboard_user,access_helpdesk_dashboard_user,model_ticket_dashboard,sh_helpdesk.helpdesk_group_user,1,1,1,1 +access_sh_quick_reply,access_sh_quick_reply,model_sh_quick_reply,base.group_user,1,1,1,1 +access_sh_quick_reply_user,access_sh_quick_reply_user,model_sh_quick_reply,sh_helpdesk.group_send_quick_reply,1,1,1,1 +access_sh_helpdesk_sla_policy,access_sh_helpdesk_sla_policy,model_sh_helpdesk_sla,base.group_user,1,1,1,1 +access_sh_helpdesk_sla_status,access_sh_helpdesk_sla_status,model_sh_helpdesk_sla_status,base.group_user,1,1,1,1 +access_sh_ticket_alarm,access_sh_ticket_alarm,model_sh_ticket_alarm,base.group_user,1,1,1,1 +access_sh_helpdesk_ticket_mass_update_wizard,access_sh_helpdesk_ticket_mass_update_wizard,model_sh_helpdesk_ticket_mass_update_wizard,base.group_user,1,1,1,1 diff --git a/sh_helpdesk/security/send_mail_security.xml b/sh_helpdesk/security/send_mail_security.xml new file mode 100644 index 0000000..dcee2d3 --- /dev/null +++ b/sh_helpdesk/security/send_mail_security.xml @@ -0,0 +1,13 @@ + + + + Send Quick Reply + + + Send Quick Reply + + + ['|','|',('sh_user_id','in',[user.id]),('sh_user_id','=',False),('commom_for_all','=',True)] + + + \ No newline at end of file diff --git a/sh_helpdesk/security/sh_helpdesk_security.xml b/sh_helpdesk/security/sh_helpdesk_security.xml new file mode 100644 index 0000000..c06e488 --- /dev/null +++ b/sh_helpdesk/security/sh_helpdesk_security.xml @@ -0,0 +1,92 @@ + + + + Helpdesk + Helpdesk + 20 + + + Support User + + + + + Team Leader + + + + + Support Manager + + + + + + + Helpdesk Ticket multi-company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + Helpdesk Ticket Manager + + [(1, '=', 1)] + + + + Helpdesk Ticket Team Leader + + + ['|','|','|','|','|',('team_head','=',user.id),('team_head','=',False),('user_id','=',user.id),('user_id','=',False),('sh_user_ids','in',[user.id]),('sh_user_ids','=',False)] + + + + Helpdesk Ticket Assigned User + + + ['|','|','|',('user_id','in',[user.id]),('user_id','=',False),('sh_user_ids','in',[user.id]),('sh_user_ids','=',False)] + + + + Helpdesk Team Manager + + + [(1,'=',1)] + + + + Helpdesk Team Team Leader + + + ['|','|',('team_head','=',user.id),('team_head','=',False),('team_members','in',[user.id])] + + + + Helpdesk SLA Policy + + + + Helpdesk SLA multi-company + + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + + Helpdesk Ticket Alarm + + + + Ticket Alarm multi-company + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + + Helpdesk Whatsapp Feature + + + + + Mass Ticket Update + + \ No newline at end of file -- cgit v1.2.3