From 327447dbb648362d713a5dc71f98f9f22c72bcf2 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Tue, 8 Nov 2016 14:57:19 +0100 Subject: [PATCH] [IMP] project_issue_sheet: Replace dependency from hr_timesheet_sheet to hr_timesheet Purpose: What is the purpose of hr_timesheet_sheet ? Because it is installed when you install project_issue_sheet and you have a lot of unnecessary menus + ugly view of timesheet grid. For example in Timesheet menu: My Timesheets, All Timesheets, My Current Timesheets, My Timesheets, Detailed Activities (still timesheets), Timesheet App. --- addons/project_issue_sheet/__manifest__.py | 2 +- addons/project_issue_sheet/security/ir.model.access.csv | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/addons/project_issue_sheet/__manifest__.py b/addons/project_issue_sheet/__manifest__.py index 68e1b40a056..731fee1742b 100644 --- a/addons/project_issue_sheet/__manifest__.py +++ b/addons/project_issue_sheet/__manifest__.py @@ -14,7 +14,7 @@ Worklogs can be maintained to signify number of hours spent by users to handle a 'website': 'https://www.odoo.com/page/project-management', 'depends': [ 'project_issue', - 'hr_timesheet_sheet', + 'hr_timesheet', ], 'data': [ 'views/project_issue_view.xml', diff --git a/addons/project_issue_sheet/security/ir.model.access.csv b/addons/project_issue_sheet/security/ir.model.access.csv index 4f339d41818..d406c5dcdf2 100644 --- a/addons/project_issue_sheet/security/ir.model.access.csv +++ b/addons/project_issue_sheet/security/ir.model.access.csv @@ -1,9 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_hr_timesheet_sheet_sheet_project_user,hr_timesheet_sheet.sheet user,hr_timesheet_sheet.model_hr_timesheet_sheet_sheet,project.group_project_user,1,1,1,0 -access_account_analytic_line_project_user,account_analytic_line user,hr_timesheet_sheet.model_account_analytic_line,project.group_project_user,1,1,1,0 -access_account_analytic_line_project_manager,account_analytic_line manager,hr_timesheet_sheet.model_account_analytic_line,project.group_project_manager,1,0,0,0 -access_hr_timesheet_sheet_sheet_project_manager,hr_timesheet_sheet.sheet manager,hr_timesheet_sheet.model_hr_timesheet_sheet_sheet,project.group_project_manager,1,0,0,0 -access_account_analytic_line_project_manager,account.analytic.line.timesheet.project.manager,account.model_account_analytic_line,project.group_project_manager,1,1,1,1 -access_account_invoice_project_manager,account.invoice.project.manager,account.model_account_invoice,project.group_project_manager,1,1,1,1 +access_account_analytic_line_project_manager,account.analytic.line.timesheet.project.manager,analytic.model_account_analytic_line,project.group_project_manager,1,1,1,1 access_analytic_account_line_project_user,analytic_account_line_timesheet user,analytic.model_account_analytic_line,project.group_project_user,1,1,1,0 -access_account_invoice_project_user,account.invoice.project.user,account.model_account_invoice,project.group_project_user,1,1,1,0