Reorder smart buttons on the hr_employee to have them in the following order: 1. Documents 2. Holiday status 3. Time Off 4. Planning 5. Timesheets 6. Equipments 7. Cars 8. Contracts 9. Appraisal 10. Work Entries 11. Payroll 12. Attendance 13. Extra Hours - Log in the chatter the name of the plan that has been started via the button "Launch Plan" - When on mobile, open the Time Off Calendar in month view - When sending a sms without any message, only display Message once in the invalid fields - Avoid the sms-help info disappearing when clicking on it and there are characters in the body of the message - Update the tooltip of phone number in the send sms wizard - Avoid the employee name to be displayed on two lines on mobile if the name is too long. Reduce the font size instead task-2735679 closes odoo/odoo#83745 Related: odoo/enterprise#23886 Signed-off-by: Kevin Baptiste <kba@odoo.com>
41 lines
1.8 KiB
XML
41 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="hr_employee_view_form" model="ir.ui.view">
|
|
<field name="name">hr.employee.view.form.inherit.maintenance</field>
|
|
<field name="model">hr.employee</field>
|
|
<field name="inherit_id" ref="hr.view_employee_form"/>
|
|
<field name="priority" eval="50"/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button name="%(maintenance.hr_equipment_action)d"
|
|
context="{'search_default_employee_id': id, 'default_employee_id': id}"
|
|
groups="maintenance.group_equipment_manager"
|
|
class="o_stat_button"
|
|
icon="fa-cubes"
|
|
type="action">
|
|
<field name="equipment_count" widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- user preferences -->
|
|
<record id="res_users_view_form_preference" model="ir.ui.view">
|
|
<field name="name">res.users.view.form.inherit.maintenance</field>
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="hr.res_users_view_form_profile"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<field name="employee_id" invisible="1"/>
|
|
<button name="%(maintenance.hr_equipment_action)d"
|
|
context="{'search_default_employee_id': employee_id, 'default_employee_id': employee_id}"
|
|
class="o_stat_button"
|
|
icon="fa-cubes"
|
|
type="action">
|
|
<field name="equipment_count" widget="statinfo"/>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|