mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 06:52:05 +02:00
Initial commit: Hr packages
This commit is contained in:
commit
62531cd146
2820 changed files with 1432848 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
<?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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue