[FIX] l10n_be_hr_payroll: Hide wage_with_holidays when leaves = 0

Now that we don't take into account the legal leaves, it should be hiddden when the number of leaves is equal to 0 instead of 20.0

closes odoo/odoo#32125

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Yannick Tivisse
2019-03-26 12:05:33 +00:00
parent 5dbf7bf357
commit 7c1a9a8204
@@ -6,8 +6,8 @@
<field name="inherit_id" ref="hr_payroll.hr_contract_form_inherit"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='wage']" position="after">
<label for="wage_with_holidays" attrs="{'invisible': [('holidays', '&lt;=', 20.0)]}"/>
<div class="o_row" attrs="{'invisible': [('holidays', '&lt;=', 20.0)]}">
<label for="wage_with_holidays" attrs="{'invisible': [('holidays', '=', 0.0)]}"/>
<div class="o_row" attrs="{'invisible': [('holidays', '=', 0.0)]}">
<field name="wage_with_holidays" nolabel="1"/>
<span>/ month</span>
</div>