Merge pull request #4014 from expsa/samir-aladawi-improves-hr-reports

[FIX] hr_holidays_public
This commit is contained in:
SamirLADOUI-sa 2025-07-24 09:59:23 +01:00 committed by GitHub
commit 4d51a19a62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -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>