[UPD] hr_holidays_public
This commit is contained in:
parent
84cff45c65
commit
ad82eaa838
|
|
@ -214,11 +214,47 @@
|
|||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_holiday_allocation_tree_hr_holidays_community" model="ir.ui.view">
|
||||
<field name="name">hr.holidays.allocation.tree.inherit</field>
|
||||
<field name="model">hr.holidays</field>
|
||||
<field name="inherit_id" ref="hr_holidays_community.view_holiday_allocation_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="decoration-warning">state in ['confirm', 'validate']</attribute>
|
||||
<attribute name="decoration-success">state == 'validate1'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='employee_id']" position="before">
|
||||
<field name="emp_number"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_holiday_simple_hr_holidays_community" model="ir.ui.view">
|
||||
<field name="name">hr.holidays.allocation.tree.inherit</field>
|
||||
<field name="model">hr.holidays</field>
|
||||
<field name="inherit_id" ref="hr_holidays_community.view_holiday_simple"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="decoration-warning">state in ['confirm', 'validate']</attribute>
|
||||
<attribute name="decoration-success">state == 'validate1'</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="custom_view_holiday" model="ir.ui.view">
|
||||
<field name="name">hr.holidays.tree.custom</field>
|
||||
<field name="model">hr.holidays</field>
|
||||
<field name="inherit_id" ref="hr_holidays_community.view_holiday"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="decoration-warning">state in ['confirm', 'validate']</attribute>
|
||||
<attribute name="decoration-success">state == 'validate1'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='number_of_days']" position="attributes">
|
||||
<attribute name="name">number_of_days_temp</attribute>
|
||||
<attribute name="decoration-bf">1</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='date_from']" position="attributes">
|
||||
<attribute name="widget">date</attribute>
|
||||
</xpath>
|
||||
|
|
@ -231,6 +267,9 @@
|
|||
<xpath expr="//field[@name='date_to']" position="after">
|
||||
<field name="create_date"/>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='employee_id']" position="before">
|
||||
<field name="emp_number"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='employee_id']" position="after">
|
||||
<field name="department_id"/>
|
||||
</xpath>
|
||||
|
|
@ -273,5 +312,9 @@
|
|||
</field>
|
||||
</record>
|
||||
<!-- view_hr_holidays_filter_inherit end -->
|
||||
|
||||
<record id="hr_holidays_community.open_company_allocation" model="ir.actions.act_window">
|
||||
<field name="domain" eval="[('holiday_type', '=', 'employee'), ('type', '=', 'add')]" />
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Reference in New Issue