[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.
This commit is contained in:
committed by
Yannick Tivisse
parent
0954ead4a6
commit
008634730a
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user