[FIX] hr_holidays_public
This commit is contained in:
parent
ad82eaa838
commit
e8c02293a5
|
|
@ -219,7 +219,8 @@
|
|||
<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">
|
||||
<xpath expr="//tree/field[@name='state']" position="attributes">
|
||||
<attribute name="widget">badge</attribute>
|
||||
<attribute name="decoration-warning">state in ['confirm', 'validate']</attribute>
|
||||
<attribute name="decoration-success">state == 'validate1'</attribute>
|
||||
</xpath>
|
||||
|
|
@ -234,7 +235,8 @@
|
|||
<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">
|
||||
<xpath expr="//tree/field[@name='state']" position="attributes">
|
||||
<attribute name="widget">badge</attribute>
|
||||
<attribute name="decoration-warning">state in ['confirm', 'validate']</attribute>
|
||||
<attribute name="decoration-success">state == 'validate1'</attribute>
|
||||
</xpath>
|
||||
|
|
@ -246,7 +248,8 @@
|
|||
<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">
|
||||
<xpath expr="//tree/field[@name='state']" position="attributes">
|
||||
<attribute name="widget">badge</attribute>
|
||||
<attribute name="decoration-warning">state in ['confirm', 'validate']</attribute>
|
||||
<attribute name="decoration-success">state == 'validate1'</attribute>
|
||||
</xpath>
|
||||
|
|
@ -314,7 +317,7 @@
|
|||
<!-- 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')]" />
|
||||
<field name="domain" eval="[('holiday_type', '=', 'employee'), ('type', '=', 'remove')]" />
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Reference in New Issue