From 9e261d0f7d3990ad849d73f9e6a7c3d7bcecea8a Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Fri, 4 May 2018 15:28:02 +0200 Subject: [PATCH] [IMP] l10n_be_hr_payroll: Store the Employee Budget --- addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 d5b6e1643c0..2ab05488fb5 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 @@ -21,8 +21,9 @@ class HrContract(models.Model): warrant_value_employee = fields.Monetary(compute='_compute_warrants_cost', string="Warrant value for the employee") # Employer costs fields - final_yearly_costs = fields.Monetary(compute='_compute_final_yearly_costs', readonly=False, - string='Employee Budget', groups="hr.group_hr_manager", + final_yearly_costs = fields.Monetary(compute='_compute_final_yearly_costs', + readonly=False, store=True, + string="Employee Budget", track_visibility="onchange", help="Total yearly cost of the employee for the employer.") monthly_yearly_costs = fields.Monetary(compute='_compute_monthly_yearly_costs', string='Monthly Equivalent Cost', readonly=True,