From 562997b2bc0b55f92177952fff3160c762b3e6bb Mon Sep 17 00:00:00 2001 From: Priyanka Kakadiya Date: Fri, 10 May 2019 11:06:09 +0000 Subject: [PATCH] [IMP] hr_timesheet: remove timesheet rule and access right for portal Purpose of the commit is to clean the current portal right of timesheet(analytic account line) and analytic account(no more ir.rule). the idea is to remove ir.rule since the domain will be difficult with ir.rule extension mecanism. Moreover, as this is "technical" data, we will use 'sudo' controller. as we don't want to customize what is shown in portal. End user is free to create its own ir.rule to connect odoo in xmlrpc he will be the only responsible for that. task-1932488 --- .../security/hr_timesheet_security.xml | 15 --------------- addons/hr_timesheet/security/ir.model.access.csv | 1 - 2 files changed, 16 deletions(-) diff --git a/addons/hr_timesheet/security/hr_timesheet_security.xml b/addons/hr_timesheet/security/hr_timesheet_security.xml index ac2d422a43e..64033b482ec 100644 --- a/addons/hr_timesheet/security/hr_timesheet_security.xml +++ b/addons/hr_timesheet/security/hr_timesheet_security.xml @@ -58,21 +58,6 @@ - - Project/Task Timesheets: frontend access - - [ - '|', - '&', - ('task_id.project_id.privacy_visibility', '=', 'portal'), - ('task_id.project_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]), - '&', - ('task_id.project_id.privacy_visibility', '=', 'portal'), - ('task_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]), - ] - - - diff --git a/addons/hr_timesheet/security/ir.model.access.csv b/addons/hr_timesheet/security/ir.model.access.csv index 96723f93935..cb11fb119f7 100644 --- a/addons/hr_timesheet/security/ir.model.access.csv +++ b/addons/hr_timesheet/security/ir.model.access.csv @@ -1,6 +1,5 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_account_analytic_line_user,analytic.account.analytic.line.timesheet.user,analytic.model_account_analytic_line,hr_timesheet.group_hr_timesheet_user,1,1,1,1 -access_account_analytic_line_portal,access_timesheets_portal,analytic.model_account_analytic_line,base.group_portal,1,0,0,0 access_account_analytic_user,analytic.account.analytic.timesheet.user,analytic.model_account_analytic_account,hr_timesheet.group_hr_timesheet_user,1,1,0,0 access_uom_uom_hr_timesheet,uom.uom.timesheet.user,uom.model_uom_uom,hr_timesheet.group_hr_timesheet_user,1,0,0,0 access_project_project,project.project.timesheet.user,model_project_project,hr_timesheet.group_hr_timesheet_user,1,0,0,0