From c19999edf859b29c9d521ab58e701af5b74aa4ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Degrave?= Date: Wed, 29 Dec 2010 09:18:04 +0100 Subject: [PATCH] [IMP+FIX] HR access rights, product margin bzr revid: fde@openerp.com-20101229081804-ci2v2t9fhtmc1d3d --- addons/hr_contract/hr_contract_view.xml | 3 ++- addons/hr_contract/security/ir.model.access.csv | 1 - addons/hr_timesheet_sheet/security/ir.model.access.csv | 1 - addons/product_margin/product_margin_view.xml | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/hr_contract/hr_contract_view.xml b/addons/hr_contract/hr_contract_view.xml index 3fe9338bd69..35d375fea1d 100644 --- a/addons/hr_contract/hr_contract_view.xml +++ b/addons/hr_contract/hr_contract_view.xml @@ -275,7 +275,8 @@ id="act_hr_employee_2_hr_contract" name="Contracts" res_model="hr.contract" - src_model="hr.employee"/> + src_model="hr.employee" + groups="base.group_hr_manager"/> diff --git a/addons/hr_contract/security/ir.model.access.csv b/addons/hr_contract/security/ir.model.access.csv index 36456284856..202fcb3bdb4 100644 --- a/addons/hr_contract/security/ir.model.access.csv +++ b/addons/hr_contract/security/ir.model.access.csv @@ -1,7 +1,6 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_hr_contract_wage_type_period_user","hr.contract.wage.type.period.user","model_hr_contract_wage_type_period","base.group_hr_user",1,1,1,1 "access_hr_contract_wage_type_user","hr.contract.wage.type.user","model_hr_contract_wage_type","base.group_hr_user",1,1,1,1 -"access_hr_contract_user","hr.contract.user","model_hr_contract","base.group_hr_user",1,1,1,1 "access_hr_resource_manager","hr.employee.resource.manager","resource.model_resource_resource","base.group_hr_manager",1,1,1,1 "access_hr_resource_calendar_user","hr.employee.resource.calendar.user","resource.model_resource_calendar","base.group_hr_user",1,1,1,1 "access_hr_contract_type_manager","hr.contract.type.manager","model_hr_contract_type","base.group_hr_manager",1,1,1,1 diff --git a/addons/hr_timesheet_sheet/security/ir.model.access.csv b/addons/hr_timesheet_sheet/security/ir.model.access.csv index f55ee0fb5e0..9d0159bbc1a 100644 --- a/addons/hr_timesheet_sheet/security/ir.model.access.csv +++ b/addons/hr_timesheet_sheet/security/ir.model.access.csv @@ -6,4 +6,3 @@ "access_hr_timesheet_report","hr.timesheet.report","model_hr_timesheet_report","base.group_hr_manager",1,1,1,1 "access_hr_analytic_timesheet_system_user","hr.analytic.timesheet.system.user","model_hr_analytic_timesheet","base.group_user",1,0,0,0 "access_hr_timesheet_sheet_sheet_day","hr.timesheet.sheet.sheet.day.user","model_hr_timesheet_sheet_sheet_day","base.group_user",1,0,0,0 -"access_timesheet_report_user","timesheet.report.user","model_timesheet_report","base.group_hr_manager",1,1,1,1 diff --git a/addons/product_margin/product_margin_view.xml b/addons/product_margin/product_margin_view.xml index 00ec98ab1e0..a6d6eff5238 100644 --- a/addons/product_margin/product_margin_view.xml +++ b/addons/product_margin/product_margin_view.xml @@ -84,7 +84,7 @@ - +