summaryrefslogtreecommitdiff
path: root/addons/hr_attendance/views
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2019-05-20 12:09:43 +0000
committerThibault Delavallée <tde@odoo.com>2019-07-10 15:07:57 +0000
commitb7c8cf1b60ef5503ad922070e57022052faf1380 (patch)
tree2d0c19bb92fcfe334e6871a3b5e58d1588549f8c /addons/hr_attendance/views
parent2b7d899124fdea32c05d833ca49478b1b4f99a22 (diff)
[IMP] hr(_*), website_hr: replace actions menu by stat button
* attendance, contract, fleet, holidays, maintenance, presence, timesheet. For the model 'hr.employee', replace the actions menu 'Archive/Restore' by the stat button. That's why adapted changes regarding xpath. Also rename the actions menu 'Time Off' by 'Time off'. Linked to task 1984526 Related to PR #33720
Diffstat (limited to 'addons/hr_attendance/views')
-rw-r--r--addons/hr_attendance/views/hr_employee_view.xml4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/hr_attendance/views/hr_employee_view.xml b/addons/hr_attendance/views/hr_employee_view.xml
index 7603422ef4b..08892208390 100644
--- a/addons/hr_attendance/views/hr_employee_view.xml
+++ b/addons/hr_attendance/views/hr_employee_view.xml
@@ -7,7 +7,7 @@
<field name="priority">10</field>
<field name="groups_id" eval="[(4,ref('hr_attendance.group_hr_attendance_user'))]"/>
<field name="arch" type="xml">
- <xpath expr="//div[@name='button_box']" position="inside">
+ <xpath expr="//button[@name='toggle_active']" position="before">
<field name="attendance_state" invisible="1"/>
<button name="%(hr_attendance_action_employee)d"
class="oe_stat_button"
@@ -18,8 +18,6 @@
<span class="o_stat_text">Attendance</span>
</div>
</button>
- </xpath>
- <xpath expr="//div[@name='button_box']" position="inside">
<button name="%(hr_attendance_action)d"
class="oe_stat_button"
icon="fa-calendar"