diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-01-11 14:25:42 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-01-11 14:25:42 +0000 |
| commit | 9172d634247320c00a45ce27481b1d9480d3c51a (patch) | |
| tree | cf0b7e5c9018ead383d50e78fcf5b6c819141050 /addons | |
| parent | 7825d008279702b3a5017196aa0345a0e48810c9 (diff) | |
[FIX] l10n_be_hr_payroll: Fix 9c5f930
Purpose
=======
Since 9c5f930, the double holiday is computed from the wage with holidays.
When we compute the employer costs, we should take the original wage,
not the adapted one, to keep fix employer costs, whatever the amount
of days the employee takes.
closes odoo/odoo#30149
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py | 4 |
1 files changed, 2 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 607bb2a9da8..a3f3c3a611e 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 @@ -153,13 +153,13 @@ class HrContract(models.Model): ) @api.depends('yearly_cost_before_charges', 'social_security_contributions', 'wage', - 'social_security_contributions', 'double_holidays', 'warrants_cost', 'meal_voucher_paid_by_employer') + 'social_security_contributions', 'warrants_cost', 'meal_voucher_paid_by_employer') def _compute_final_yearly_costs(self): for contract in self: contract.final_yearly_costs = ( contract.yearly_cost_before_charges + contract.social_security_contributions + - contract.double_holidays + + contract.wage * 0.92 + contract.warrants_cost + (220.0 * contract.meal_voucher_paid_by_employer) ) |
