From 9a9666c157abf9230aad71f4ebdf712b7bbd2430 Mon Sep 17 00:00:00 2001 From: Bhumika Trivedi Date: Thu, 9 Aug 2018 11:04:29 +0530 Subject: [PATCH 1/2] [FIX]: Fix issue for portal helpdesk issue access --- .../helpdesk_basic/security/helpdesk_security_view.xml | 9 +++++++++ addons/helpdesk_basic/security/ir.model.access.csv | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/addons/helpdesk_basic/security/helpdesk_security_view.xml b/addons/helpdesk_basic/security/helpdesk_security_view.xml index 97dee6fd..21065681 100644 --- a/addons/helpdesk_basic/security/helpdesk_security_view.xml +++ b/addons/helpdesk_basic/security/helpdesk_security_view.xml @@ -18,6 +18,15 @@ + + See Own Issues + + + ['|', ('user_id','=',user.id), ('partner_id', '=', user.partner_id.id)] + + + + See Own Issues diff --git a/addons/helpdesk_basic/security/ir.model.access.csv b/addons/helpdesk_basic/security/ir.model.access.csv index 029d7ae1..139f893f 100644 --- a/addons/helpdesk_basic/security/ir.model.access.csv +++ b/addons/helpdesk_basic/security/ir.model.access.csv @@ -1,12 +1,16 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_helpdesk_user,access_helpdesk_user,model_helpdesk_ticket,helpdesk_group_user,1,1,1,0 +access_helpdesk_portal,access_helpdesk_portal,model_helpdesk_ticket,base.group_portal,1,0,0,0 access_helpdesk_manager,access_helpdesk_manager,model_helpdesk_ticket,helpdesk_group_manager,1,1,1,1 access_helpdesk_team_user,access_helpdesk_team_user,model_helpdesk_team,helpdesk_group_user,1,0,0,0 +access_helpdesk_team_portal,access_helpdesk_team_portal,model_helpdesk_team,base.group_portal,1,0,0,0 access_helpdesk_team_manager,access_helpdesk_team_manager,model_helpdesk_team,helpdesk_group_manager,1,1,1,1 access_issue_type_user,access_issue_type_user,model_issue_type,helpdesk_group_user,1,0,0,0 access_issue_type_any,access_issue_type_any,model_issue_type,,1,0,0,0 +access_issue_type_portal,access_issue_type_portal,model_issue_type,base.group_portal,1,0,0,0 access_issue_type_manager,access_issue_type_manager,model_issue_type,helpdesk_group_manager,1,1,1,1 access_tag_user,access_tag_user,model_helpdesk_tag,helpdesk_group_user,1,0,0,0 +access_tag_portal,access_tag_portal,model_helpdesk_tag,base.group_portal,1,0,0,0 access_tag_manager,access_tag_manager,model_helpdesk_tag,helpdesk_group_manager,1,1,1,1 access_helpdesk_report,access_helpdesk_report,model_helpdesk_report,helpdesk_group_manager,1,0,0,0 access_ir_rule,access_ir_rule,base.model_ir_rule,helpdesk_group_manager,1,0,0,0 From 1e3b803384ff35a5f779acbfead02be1afdb7341 Mon Sep 17 00:00:00 2001 From: Bhumika Trivedi Date: Thu, 9 Aug 2018 11:43:58 +0530 Subject: [PATCH 2/2] [IMP]: Updated record rule --- addons/helpdesk_basic/security/helpdesk_security_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/helpdesk_basic/security/helpdesk_security_view.xml b/addons/helpdesk_basic/security/helpdesk_security_view.xml index 21065681..199fd4e2 100644 --- a/addons/helpdesk_basic/security/helpdesk_security_view.xml +++ b/addons/helpdesk_basic/security/helpdesk_security_view.xml @@ -18,8 +18,8 @@ - - See Own Issues + + Portal See Own Issues ['|', ('user_id','=',user.id), ('partner_id', '=', user.partner_id.id)]