summaryrefslogtreecommitdiff
path: root/addons/hr_maintenance
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_maintenance
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_maintenance')
-rw-r--r--addons/hr_maintenance/views/hr_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_maintenance/views/hr_views.xml b/addons/hr_maintenance/views/hr_views.xml
index 826ddcf2d44..b7063b74b5d 100644
--- a/addons/hr_maintenance/views/hr_views.xml
+++ b/addons/hr_maintenance/views/hr_views.xml
@@ -5,7 +5,7 @@
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
- <xpath expr="//div[@name='button_box']" position="inside">
+ <xpath expr="//button[@name='toggle_active']" position="before">
<button name="%(maintenance.hr_equipment_action)d"
context="{'search_default_employee_id': id}"
groups="maintenance.group_equipment_manager"