diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-06-25 09:25:18 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-17 07:33:11 +0000 |
| commit | 008634730adb0e834e759d5f356b8978e083395a (patch) | |
| tree | 1071d71942b64bb1a58535caa9b50b55c2b8de17 /addons | |
| parent | 0954ead4a6a395639a327a9c042de21dd53a3e96 (diff) | |
[IMP] hr_holidays: Clean leave stat button
1/ Change stat button landing page
----------------------------------
Currently when clicking on the leave stat button
of an employee, the landing page is the leave dashbord of the current
user.
It's more usefull for HR people to land on the reporting
view of the employee.
2/ Remove stat button from public employee
------------------------------------------
It's useless for regular employees to know how
many remaining leave others have.
Hence the stat button is removed from the public
employee form view.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/hr_holidays/views/hr_views.xml | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/addons/hr_holidays/views/hr_views.xml b/addons/hr_holidays/views/hr_views.xml index 91601a2ce89..c7da3c7eea1 100644 --- a/addons/hr_holidays/views/hr_views.xml +++ b/addons/hr_holidays/views/hr_views.xml @@ -155,7 +155,7 @@ </span> </div> </button> - <button name="%(hr_leave_action_new_request)d" + <button name="%(act_hr_employee_holiday_request)d" type="action" class="oe_stat_button" icon="fa-calendar" @@ -201,23 +201,6 @@ </span> </div> </button> - <button name="%(hr_leave_action_new_request)d" - type="action" - class="oe_stat_button" - icon="fa-calendar" - attrs="{'invisible': [('show_leaves','=', False)]}" - groups="base.group_user" - help="Remaining leaves"> - <div class="o_field_widget o_stat_info"> - <span class="o_stat_value"> - <field name="allocation_used_count" digits="[42,1]"/>/ - <field name="allocation_count" digits="[42,1]"/> - </span> - <span class="o_stat_text"> - Time Off - </span> - </div> - </button> </xpath> </field> </record> |
