Skip to content

Commit

Permalink
[FIX] hr_holidays: copy accrual fields when creating child allocations
Browse files Browse the repository at this point in the history
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 8f39509
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/hr_holidays/models/hr_leave_allocation.py
Expand Up @@ -374,6 +374,11 @@ def _prepare_holiday_values(self, employee):
'parent_id': self.id,
'employee_id': employee.id,
'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

Expand Down

0 comments on commit 8f39509

Please sign in to comment.