Skip to content

Commit

Permalink
integrate OCA#694 from v12
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s committed Nov 15, 2019
1 parent 35aedef commit feb4172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hr_holidays_public/models/hr_holidays_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,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 feb4172

Please sign in to comment.