From a3a853160fdfc023c0b22d419dacbff65a5e41a0 Mon Sep 17 00:00:00 2001 From: "Vir (Open ERP)" Date: Wed, 4 Aug 2010 11:00:50 +0530 Subject: [PATCH] [MOD] hr_* : modification in hr access rights bzr revid: vir@tinyerp.com-20100804053050-r7qbfr2q87e2zddm --- .../security/ir.model.access.csv | 4 ++-- addons/hr_holidays/test/test_hr_holiday.yml | 4 ++-- addons/hr_timesheet/hr_timesheet_report.xml | 8 ++++---- addons/hr_timesheet/test/test_hr_timesheet.yml | 6 +++--- .../hr_timesheet_invoice_report.xml | 2 +- .../report/hr_timesheet_invoice_report_view.xml | 4 ++-- .../security/ir.model.access.csv | 14 +++++++------- .../hr_timesheet_sheet/hr_timesheet_sheet_view.xml | 4 ++-- .../security/ir.model.access.csv | 8 ++++---- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/addons/analytic_user_function/security/ir.model.access.csv b/addons/analytic_user_function/security/ir.model.access.csv index a7220a93054..d8f2f0d2116 100644 --- a/addons/analytic_user_function/security/ir.model.access.csv +++ b/addons/analytic_user_function/security/ir.model.access.csv @@ -2,5 +2,5 @@ "access_analytic_user_funct_user","analytic user funct user","model_analytic_user_funct_grid","account.group_account_manager",1,0,0,0 "access_analytic_user_funct_manager","analytic user funct manager","model_analytic_user_funct_grid","account.group_account_manager",1,1,1,1 "access_analytic_user_funct_account_manager","analytic user funct account manager","model_analytic_user_funct_grid","account.group_account_manager",1,1,1,1 -"access_analytic_user_funct_grid_hr_user","analytic user funct grid hr user","model_analytic_user_funct_grid","hr.group_hr_user",1,0,0,0 -"access_analytic_user_funct_grid_hr_manager","analytic user funct grid hr manager","model_analytic_user_funct_grid","hr.group_hr_manager",1,1,1,1 +"access_analytic_user_funct_grid_hr_user","analytic user funct grid hr user","model_analytic_user_funct_grid","base.group_hr_user",1,0,0,0 +"access_analytic_user_funct_grid_hr_manager","analytic user funct grid hr manager","model_analytic_user_funct_grid","base.group_hr_manager",1,1,1,1 diff --git a/addons/hr_holidays/test/test_hr_holiday.yml b/addons/hr_holidays/test/test_hr_holiday.yml index 03c1666dc6f..720ca5e9e84 100644 --- a/addons/hr_holidays/test/test_hr_holiday.yml +++ b/addons/hr_holidays/test/test_hr_holiday.yml @@ -8,8 +8,8 @@ context_lang: en_US groups_id: - base.group_user - - hr.group_hr_manager - - hr.group_hr_user + - base.group_hr_manager + - base.group_hr_user login: user1 name: user1 password: user1 diff --git a/addons/hr_timesheet/hr_timesheet_report.xml b/addons/hr_timesheet/hr_timesheet_report.xml index 1354788f77b..081972582b0 100644 --- a/addons/hr_timesheet/hr_timesheet_report.xml +++ b/addons/hr_timesheet/hr_timesheet_report.xml @@ -17,10 +17,10 @@ --> + groups="base.group_hr_manager"/>--> @@ -37,7 +37,7 @@ diff --git a/addons/hr_timesheet/test/test_hr_timesheet.yml b/addons/hr_timesheet/test/test_hr_timesheet.yml index 43143e4e324..ce132a5f85a 100644 --- a/addons/hr_timesheet/test/test_hr_timesheet.yml +++ b/addons/hr_timesheet/test/test_hr_timesheet.yml @@ -20,11 +20,11 @@ company_id: base.main_company context_lang: en_US groups_id: - - hr.group_hr_user + - base.group_hr_user - hr_attendance.group_hr_attendance - base.group_user - base.group_extended - - hr.group_hr_manager + - base.group_hr_manager login: user1 name: user1 password: user1 @@ -124,7 +124,7 @@ quantity_max: 0.0 state: open -- +- My work for this project is over and I stop working by clicking on "Stop Work" button of this wizard. - !python {model: hr.sign.out.project}: | diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_report.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_report.xml index b1a6cc0dc51..eed0e97ecf7 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_report.xml +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_report.xml @@ -36,7 +36,7 @@ id="print_account_analytic_profit" parent="menu_hr_reporting_timesheet_invoice" type="wizard" - groups="hr.group_hr_manager"/>--> + groups="base.group_hr_manager"/>--> diff --git a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml index cbdef2a28ba..cabf51546c2 100644 --- a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml +++ b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml @@ -506,12 +506,12 @@ parent="base.menu_project_management_time_tracking" sequence="7"/--> + groups="base.group_hr_manager" sequence="2"/>--> diff --git a/addons/hr_timesheet_invoice/security/ir.model.access.csv b/addons/hr_timesheet_invoice/security/ir.model.access.csv index c8b65d13c36..0ba11ff8193 100644 --- a/addons/hr_timesheet_invoice/security/ir.model.access.csv +++ b/addons/hr_timesheet_invoice/security/ir.model.access.csv @@ -1,11 +1,11 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_hr_timesheet_invoice_factor_hr_user","hr_timesheet_invoice.factor.hr.user","model_hr_timesheet_invoice_factor","hr.group_hr_user",1,0,0,0 +"access_hr_timesheet_invoice_factor_hr_user","hr_timesheet_invoice.factor.hr.user","model_hr_timesheet_invoice_factor","base.group_hr_user",1,0,0,0 "access_hr_timesheet_invoice_factor_acc_inv","hr_timesheet_invoice.factor.account.invoice","model_hr_timesheet_invoice_factor","account.group_account_invoice",1,1,1,1 "access_report_analytic_account_close","report.analytic.account.close","model_report_analytic_account_close","account.group_account_manager",1,0,0,0 "access_report_account_analytic_line_to_invoice","report.account.analytic.line.to.invoice","model_report_account_analytic_line_to_invoice","account.group_account_manager",1,0,0,0 -"access_report_timesheet_user","report_timesheet.user","model_report_timesheet_user","hr.group_hr_manager",1,0,0,0 -"access_report_timesheet_account","report_timesheet.account","model_report_timesheet_account","hr.group_hr_manager",1,0,0,0 -"access_report_timesheet_account_date","report_timesheet.account.date","model_report_timesheet_account_date","hr.group_hr_manager",1,0,0,0 -"access_report_timesheet_invoice","report_timesheet.invoice","model_report_timesheet_invoice","hr.group_hr_manager",1,0,0,0 -"access_report_random_timesheet","report_random_timesheet","model_report_random_timesheet","hr.group_hr_manager",1,0,0,0 -"access_report_random_timesheet_lines","random_timesheet_lines","model_random_timesheet_lines","hr.group_hr_manager",1,0,0,0 +"access_report_timesheet_user","report_timesheet.user","model_report_timesheet_user","base.group_hr_manager",1,0,0,0 +"access_report_timesheet_account","report_timesheet.account","model_report_timesheet_account","base.group_hr_manager",1,0,0,0 +"access_report_timesheet_account_date","report_timesheet.account.date","model_report_timesheet_account_date","base.group_hr_manager",1,0,0,0 +"access_report_timesheet_invoice","report_timesheet.invoice","model_report_timesheet_invoice","base.group_hr_manager",1,0,0,0 +"access_report_random_timesheet","report_random_timesheet","model_report_random_timesheet","base.group_hr_manager",1,0,0,0 +"access_report_random_timesheet_lines","random_timesheet_lines","model_random_timesheet_lines","base.group_hr_manager",1,0,0,0 diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml index be04a9d5186..504d8107392 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -232,10 +232,10 @@ name="Time Tracking" parent="base.menu_main_pm" sequence="5"/> + groups="base.group_hr_manager" sequence="5"/> + groups="base.group_hr_manager" sequence="1"/>