diff --git a/addons/hr/hr_security.xml b/addons/hr/hr_security.xml new file mode 100644 index 00000000000..4ec02e7aa55 --- /dev/null +++ b/addons/hr/hr_security.xml @@ -0,0 +1,14 @@ + + + + + HR Manager + + + + + Employee + + + + diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index ee2f50bc6c2..126ca59dfad 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -87,18 +87,33 @@ [('parent_id','=',False)] - - - Employees hr.employee form tree,form - - + + + + + My Employees + hr.employee + form + tree,form + [('parent_id.user_id','=',uid)] + + New Employee @@ -106,8 +121,11 @@ form form,tree - - + + - - hr.holidays.form - hr.holidays - form - -
- - - - - - - -
- - hr.holidays.tree - hr.holidays - tree - - - - - - - - - - - hr.holidays.ask_form - hr.holidays - form - -
- - - - - - - - -
- - Vacation Requests - hr.holidays - form - - - - - - - - hr.holidays.status.form - hr.holidays.status - form - -
- - -
-
- - hr.holidays.status.tree - hr.holidays.status - tree - - - - - - - - Holiday Status - ir.actions.act_window - hr.holidays.status - form - tree,form - - - - hr.action.reason.form hr.action.reason