Skip to content

Commit

Permalink
Merge PR #694 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 4, 2019
2 parents 6bf5b28 + 831aa38 commit d747ad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hr_holidays_public/__manifest__.py
Expand Up @@ -3,7 +3,7 @@

{
'name': 'HR Holidays Public',
'version': '12.0.1.0.1',
'version': '12.0.1.0.2',
'license': 'AGPL-3',
'category': 'Human Resources',
'author': "Michael Telahun Makonnen, "
Expand Down
2 changes: 1 addition & 1 deletion hr_holidays_public/models/hr_holidays_public.py
Expand Up @@ -93,7 +93,7 @@ def get_holidays_list(self, year, employee_id=None):
holidays_filter.append(('country_id', '=', False))
pholidays = self.search(holidays_filter)
if not pholidays:
return list()
return self.env['hr.holidays.public.line']

states_filter = [('year_id', 'in', pholidays.ids)]
if employee and employee.address_id and employee.address_id.state_id:
Expand Down

0 comments on commit d747ad1

Please sign in to comment.