Skip to content
Permalink
Browse files

[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
  • Loading branch information...
tivisse committed Mar 26, 2019
1 parent 5dbf7bf commit 0f4d8b60ba70e3a315fc52e951ffc0396dd3bf29
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/l10n_be_hr_payroll/views/l10n_be_hr_payroll_view.xml
@@ -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>

0 comments on commit 0f4d8b6

Please sign in to comment.
You can’t perform that action at this time.