Browse files

[FIX] hr_holidays: copy accrual fields when creating child allocations

Create an accrual leave, and set it e.g. by employee tag.
For each employee having the tag, a child allocation will be created.
When doing so, it will prepare the values for these creations.
However the relevant fields for accrual leaves were missing from these values.

opw 1906476

closes #28492
  • Loading branch information...
len-odoo committed Nov 8, 2018
1 parent 96a795f commit 8f39509d27e95839bdfaaa3573b901796e6c156c
Showing with 5 additions and 0 deletions.
  1. +5 −0 addons/hr_holidays/models/
@@ -374,6 +374,11 @@ def _prepare_holiday_values(self, employee):
'accrual': self.accrual,
'date_to': self.date_to,
'interval_unit': self.interval_unit,
'interval_number': self.interval_number,
'number_per_interval': self.number_per_interval,
'unit_per_interval': self.unit_per_interval,
return values

0 comments on commit 8f39509

Please sign in to comment.