From 6b4062ea63c628c81caecfca21968820b17d0573 Mon Sep 17 00:00:00 2001 From: jem-odoo Date: Mon, 9 Apr 2018 16:50:28 +0200 Subject: [PATCH] [IMP] project,hr_timesheet: module dependencies For historical reason, project depended on product. Probably to use UoM. Now, UoM is extracted in 'uom' module, and project does not use UoM anymore (only with timesheet). Removing the 'product' dependency requires to make hr_timesheet depending of uom, since this one really use UoM mecanism. Task #39079 --- addons/hr_timesheet/__manifest__.py | 2 +- addons/hr_timesheet/security/ir.model.access.csv | 2 -- addons/project/__manifest__.py | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/hr_timesheet/__manifest__.py b/addons/hr_timesheet/__manifest__.py index cac0188cc03..401608701bc 100644 --- a/addons/hr_timesheet/__manifest__.py +++ b/addons/hr_timesheet/__manifest__.py @@ -20,7 +20,7 @@ It is completely integrated with the cost accounting module. It allows you to se up a management by affair. """, 'website': 'https://www.odoo.com/page/timesheet-mobile-app', - 'depends': ['hr', 'analytic', 'project'], + 'depends': ['hr', 'analytic', 'project', 'uom'], 'data': [ 'security/hr_timesheet_security.xml', 'security/ir.model.access.csv', diff --git a/addons/hr_timesheet/security/ir.model.access.csv b/addons/hr_timesheet/security/ir.model.access.csv index 63bc0cace28..c6776df9364 100644 --- a/addons/hr_timesheet/security/ir.model.access.csv +++ b/addons/hr_timesheet/security/ir.model.access.csv @@ -6,8 +6,6 @@ access_account_analytic_account_user,account.analytic.account,analytic.model_acc access_account_analytic_account_manager,account.analytic.account,analytic.model_account_analytic_account,project.group_project_manager,1,1,1,1 access_account_analytic_account_portal,account_analytic_account,analytic.model_account_analytic_account,base.group_portal,1,0,0,0 access_account_analytic_line_project,account.analytic.line project,analytic.model_account_analytic_line,project.group_project_manager,1,1,1,1 -access_product_product_user,product.product.timesheet.user,product.model_product_product,hr_timesheet.group_hr_timesheet_user,1,1,1,0 -access_product_template_timesheet_user,product.template.timesheet.user,product.model_product_template,hr_timesheet.group_hr_timesheet_user,1,1,1,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 access_project_task,project.task.timesheet.user,model_project_task,hr_timesheet.group_hr_timesheet_user,1,1,0,0 diff --git a/addons/project/__manifest__.py b/addons/project/__manifest__.py index 43c81ed1cae..a2d56f1624f 100644 --- a/addons/project/__manifest__.py +++ b/addons/project/__manifest__.py @@ -10,7 +10,6 @@ 'summary': 'Organize and schedule your projects ', 'depends': [ 'base_setup', - 'product', 'mail', 'portal', 'rating',