mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 09:12:04 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -7,13 +7,13 @@
|
|||
<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_versions" position="before">
|
||||
<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" />
|
||||
invisible="employee_cars_count == 0">
|
||||
<field name="employee_cars_count" widget="statinfo" string="Cars History" />
|
||||
</button>
|
||||
</div>
|
||||
</button>
|
||||
<group name="application_group" position="attributes">
|
||||
<attribute name="invisible">0</attribute>
|
||||
</group>
|
||||
|
|
@ -28,25 +28,10 @@
|
|||
<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 expr="//field[@name='private_car_plate']" position="replace">
|
||||
<field name="license_plate"/>
|
||||
</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue