[FIX] l10n_be_hr_payroll: Add missing field dependency on compute method

This commit is contained in:
Yannick Tivisse
2018-01-19 15:20:01 +01:00
parent f99c4f2b48
commit 628406156b
@@ -76,7 +76,7 @@ class HrContract(models.Model):
default=lambda self: self.get_attribute('eco_checks', 'default_value'),
help="Yearly amount the employee receives in the form of eco vouchers.")
@api.depends('holidays', 'wage')
@api.depends('holidays', 'wage', 'final_yearly_costs')
def _compute_wage_with_holidays(self):
for contract in self:
if contract.holidays > 20.0: