Skip to content

Commit

Permalink
Merge commit 'refs/pull/81/head' of https://github.com/OCA/hr-holidays
Browse files Browse the repository at this point in the history
…into 15.0
  • Loading branch information
docker-odoo committed Nov 19, 2024
2 parents 6da361b + 9644452 commit 6344279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hr_holidays_public/models/hr_holidays_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ def get_holidays_list(
)
else:
holidays_filter.append(("country_id", "=", False))
pholidays = self.search(holidays_filter)
pholidays = self.sudo().search(holidays_filter)
if not pholidays:
return self.env["hr.holidays.public.line"]

states_filter = self._get_domain_states_filter(
pholidays, start_dt, end_dt, employee_id
)
hhplo = self.env["hr.holidays.public.line"]
holidays_lines = hhplo.search(states_filter)
holidays_lines = hhplo.sudo().search(states_filter)
return holidays_lines

@api.model
Expand Down

0 comments on commit 6344279

Please sign in to comment.