summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2017-11-09 14:13:59 +0100
committerYannick Tivisse <yti@odoo.com>2017-11-17 11:25:25 +0100
commitc2acd30413ef9b280ea2fc3e81589da5940cd2d0 (patch)
tree5ae3f8e6b7102afe27445e4abc5e07f3b13a53b5 /addons
parentecedb77ede36b312db9db0c27d85d71dc9a49a3d (diff)
[FIX] l10n_be_hr_payroll: Set the average working days to 231/year
Purpose ======= That's the number of work days taken into account by the social secretariat
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_be_hr_payroll/models/l10n_be_hr_payroll.py4
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 72fbc801345..9487811d61f 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
@@ -80,7 +80,7 @@ class HrContract(models.Model):
def _compute_wage_with_holidays(self):
for contract in self:
if contract.holidays > 20.0:
- yearly_cost = contract.final_yearly_costs * (1.0 - (contract.holidays - 20.0) / 220.0)
+ yearly_cost = contract.final_yearly_costs * (1.0 - (contract.holidays - 20.0) / 231.0)
contract.wage_with_holidays = contract._get_gross_from_employer_costs(yearly_cost)
else:
contract.wage_with_holidays = contract.wage
@@ -133,7 +133,7 @@ class HrContract(models.Model):
def _compute_holidays_compensation(self):
for contract in self:
if contract.holidays < 20:
- decrease_amount = contract.final_yearly_costs * (20.0 - contract.holidays) / 220.0
+ decrease_amount = contract.final_yearly_costs * (20.0 - contract.holidays) / 231.0
contract.holidays_compensation = decrease_amount
else:
contract.holidays_compensation = 0.0