Skip to content

Commit

Permalink
[REF] hr_holidays: return newly created leaves after splitting
Browse files Browse the repository at this point in the history
closes odoo#188800

X-original-commit: 215d9d5
Signed-off-by: Bertrand Dossogne (bedo) <[email protected]>
  • Loading branch information
SilvioC2C authored and Bertrand2 committed Dec 9, 2024
1 parent 66f3c57 commit 3262d11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/hr_holidays/models/hr_leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,8 @@ def _split_leaves(self, split_date_from, split_date_to):

split_leaves.filtered(lambda l: l.state in 'validate')._validate_leave_request()

return split_leaves

def action_validate(self, check_state=True):
current_employee = self.env.user.employee_id
leaves = self._get_leaves_on_public_holiday()
Expand Down

0 comments on commit 3262d11

Please sign in to comment.