diff --git a/addons/hr/security/ir.model.access.csv b/addons/hr/security/ir.model.access.csv index 1a9331779df..a9fb4fdaae3 100644 --- a/addons/hr/security/ir.model.access.csv +++ b/addons/hr/security/ir.model.access.csv @@ -3,16 +3,18 @@ "access_hr_employee_user","hr.employee user","model_hr_employee","base.group_hr_user",1,1,1,1 "access_hr_employee_resource_user","resource.resource.user","resource.model_resource_resource","base.group_hr_user",1,1,1,1 "access_hr_department_user","hr.department.user","model_hr_department","base.group_hr_user",1,1,1,1 -"access_hr_employee_category_manager","hr.employee.category.manager","model_hr_employee_category","base.group_hr_manager",1,0,0,0 +"access_hr_employee_category_manager","hr.employee.category.manager","model_hr_employee_category","base.group_hr_manager",1,1,1,1 "access_hr_department_manager","hr.department.manager","model_hr_department","base.group_hr_manager",1,1,1,1 "access_hr_employee_marital_status","hr.employee.marital.status","model_hr_employee_marital_status","base.group_system",1,1,1,1 "access_hr_job_user","hr.job user","model_hr_job","base.group_hr_user",1,0,0,0 -"access_hr_employee_category_system","hr.employee.category.system","model_hr_employee_category","base.group_system",1,0,0,0 +"access_hr_employee_category_system","hr.employee.category.system","model_hr_employee_category","base.group_system",1,1,1,1 "access_hr_employee_manager","hr.employee.manager","model_hr_employee","base.group_hr_manager",1,1,1,1 "access_hr_employee_resource_manager","resource.resource.manager","resource.model_resource_resource","base.group_hr_manager",1,1,1,1 -"access_hr_department_system","hr.department.system","model_hr_department","base.group_system",1,0,0,0 +"access_hr_department_system","hr.department.system","model_hr_department","base.group_system",1,1,1,1 "access_hr_res_partner_address","res.partner.address","base.model_res_partner_address","base.group_hr_manager",1,1,1,1 "access_hr_job_manager","hr.job.manager","model_hr_job","base.group_hr_manager",1,1,1,1 -"access_hr_employee_system","hr.employee.system","model_hr_employee","base.group_system",1,1,1,1 +"access_hr_employee_system","hr.employee.system","model_hr_employee","base.group_system",1,0,0,0 "access_hr_job_system","hr.job system","model_hr_job","base.group_system",1,0,0,0 -"access_hr_employee_category_system","hr.employee.category.system","model_hr_employee_category","base.group_system",1,0,0,0 +"access_hr_employee_employee","hr.employee.employee","model_hr_employee","base.group_user",1,0,0,0 +"access_hr_employee_category_employee","hr.employee.category.employee","model_hr_employee_category","base.group_user",1,0,0,0 +"access_hr_department_employee","hr.department.employee","model_hr_department","base.group_user",1,0,0,0 diff --git a/addons/hr_timesheet_sheet/__openerp__.py b/addons/hr_timesheet_sheet/__openerp__.py index 73bb496967f..1b554a6b242 100644 --- a/addons/hr_timesheet_sheet/__openerp__.py +++ b/addons/hr_timesheet_sheet/__openerp__.py @@ -56,6 +56,7 @@ The validation can be configured in the company: 'report/timesheet_report_view.xml', 'board_hr_timesheet_view.xml', 'report/hr_timesheet_report_view.xml', + 'wizard/hr_timesheet_current_view.xml', ], 'demo_xml': ['hr_timesheet_sheet_demo.xml', diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index acbe668df25..624ce72d659 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -754,7 +754,7 @@ class res_company(osv.osv): "computation for one sheet. Set this to 0 if you do not want any control."), } _defaults = { - 'timesheet_range': lambda *args: 'month', + 'timesheet_range': lambda *args: 'week', 'timesheet_max_difference': lambda *args: 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 e4c4fde9cc9..d9b666cfbf1 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -148,10 +148,10 @@ -