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>
53 lines
2.4 KiB
XML
53 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Employee -->
|
|
<record id="view_employee_form" model="ir.ui.view">
|
|
<field name="name">hr.employee.form.inherit.hr.fleet</field>
|
|
<field name="model">hr.employee</field>
|
|
<field name="inherit_id" ref="hr.view_employee_form" />
|
|
<field name="priority" eval="60" />
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button name="action_open_employee_cars" type="object"
|
|
class="oe_stat_button" icon="fa-car" groups="fleet.fleet_group_manager"
|
|
attrs="{'invisible': [('employee_cars_count', '=', 0)]}">
|
|
<field name="employee_cars_count" widget="statinfo" />
|
|
</button>
|
|
</div>
|
|
<group name="application_group" position="attributes">
|
|
<attribute name="string">Application Settings</attribute>
|
|
</group>
|
|
<group name="application_group" position="inside">
|
|
<field name="mobility_card" string="Fleet Mobility Card"/>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_employee_filter" model="ir.ui.view">
|
|
<field name="name">hr.employee.filter.inherit.hr.fleet</field>
|
|
<field name="model">hr.employee</field>
|
|
<field name="inherit_id" ref="hr.view_employee_filter"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='job_id']" position="after">
|
|
<field name="car_ids" string="License Plate"
|
|
filter_domain="[('car_ids.license_plate', 'ilike', self)]"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="res_users_view_form_preferences" model="ir.ui.view">
|
|
<field name="name">hr.user.preferences.form.inherit.hr.fleet</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">
|
|
<button name="action_open_employee_cars" type="object"
|
|
class="oe_stat_button" icon="fa-car" groups="fleet.fleet_group_manager"
|
|
attrs="{'invisible': [('employee_cars_count','=', 0)]}">
|
|
<field name="employee_cars_count" widget="statinfo" />
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|