From df532c52b31adf0966774b90178c7c90a2bc12ee Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Thu, 3 May 2018 13:12:22 +0200 Subject: [PATCH] [IMP] l10n_be_hr_payroll: Track visibility onchange on wage_with_holidays --- addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py b/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py index f313b3e575e..d5b6e1643c0 100644 --- a/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py +++ b/addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py @@ -72,7 +72,8 @@ class HrContract(models.Model): help="Number of days of paid leaves the employee gets per year.") holidays_editable = fields.Boolean(string="Editable Leaves", default=True) holidays_compensation = fields.Monetary(compute='_compute_holidays_compensation', string="Holidays Compensation") - wage_with_holidays = fields.Monetary(compute='_compute_wage_with_holidays', inverse='_inverse_wage_with_holidays', string="Wage update with holidays retenues") + wage_with_holidays = fields.Monetary(compute='_compute_wage_with_holidays', inverse='_inverse_wage_with_holidays', + track_visibility='onchange', string="Wage update with holidays retenues") additional_net_amount = fields.Monetary(string="Net Supplements", track_visibility="onchange", help="Monthly net amount the employee receives.")