hr_holidays_ru/views/hr_leave_views.xml

50 lines
2.3 KiB
XML
Raw Permalink Normal View History

<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="hr_leave_view_form_inh" model="ir.ui.view">
<field name="name">hr.leave.view.form.inh</field>
<field name="model">hr.leave</field>
<field name="inherit_id" ref="hr_holidays.hr_leave_view_form"/>
<field name="arch" type="xml">
<xpath expr="//group/label[@for='request_unit_half']" position="replace">
</xpath>
<xpath expr="//label[@for='number_of_days_display']" position="replace">
<field name="number_of_days_display" invisible="1" />
</xpath>
<xpath expr="//div[@name='duration_display']" position="replace">
<div name="duration_display">
<div class="o_row">
<div groups="!hr_holidays.group_hr_holidays_manager" invisible="1">
<field name="number_of_days_display" nolabel="1" readonly="1" class="oe_inline"/>
<span>Days</span>
</div>
<div groups="hr_holidays.group_hr_holidays_manager" class="o_row" invisible="1">
<field name="number_of_days" nolabel="1" class="oe_inline"/>
<span>Days</span>
</div>
<div invisible="1" class="o_row">
<field name="number_of_hours_text" nolabel="1" class="oe_inline"/>
</div>
</div>
</div>
</xpath>
</field>
</record>
<record id="hr_holidays.hr_leave_action_action_approve_department"
model="ir.actions.act_window">
<field name="context">{
'hide_employee_name': 1,
'holiday_status_name_get': False}</field>
</record>
<record id="hr_leave_view_tree_inh" model="ir.ui.view">
<field name="name">hr.leave.view.tree.inh</field>
<field name="model">hr.leave</field>
<field name="inherit_id" ref="hr_holidays.hr_leave_view_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='employee_id']" position="replace">
<field name="employee_id" widget="many2one_avatar"/>
</xpath>
</field>
</record>
</odoo>