diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-09-20 12:20:07 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-09-20 12:20:07 +0200 |
| commit | 92fa0d020779830ed8e065eda3f2066d95e29720 (patch) | |
| tree | 41c6d34cc1244561ac92313fff73c501a02da7f7 | |
| parent | bf1bfb06fed4cdc1270eefab02a28ea24d67fa95 (diff) | |
[FIX] hr_holidays: Show only my Leaves under 'My Leaves' menuitems
The menuitems under 'My Leaves' show all the records if the user is a manager. It shouldn't. My means my.
| -rw-r--r-- | addons/hr_holidays/views/hr_holidays_views.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/hr_holidays/views/hr_holidays_views.xml b/addons/hr_holidays/views/hr_holidays_views.xml index 9e606dfaa4d..bed32f308df 100644 --- a/addons/hr_holidays/views/hr_holidays_views.xml +++ b/addons/hr_holidays/views/hr_holidays_views.xml @@ -298,6 +298,7 @@ <field name="view_id" ref="edit_holiday_new"/> <field name="context">{ 'default_type': 'remove', + 'search_default_my_leaves': 1, 'needaction_menu_ref': [ 'hr_holidays.menu_open_company_allocation', @@ -383,6 +384,7 @@ <field name="view_type">form</field> <field name="context">{ 'default_type':'add', + 'search_default_my_leaves': 1, 'needaction_menu_ref': [ 'hr_holidays.menu_open_company_allocation', @@ -459,6 +461,7 @@ <field name="context">{ 'search_default_group_type': 1, 'search_default_year': 1 , + 'search_default_my_leaves': 1, 'needaction_menu_ref': [ 'hr_holidays.menu_open_ask_holidays_new', |
