Skip to content

Commit

Permalink
[12.0][FIX] hr_holiday_public: Fix method return for concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
p-tombez authored and xaviedoanhduy committed Oct 14, 2024
1 parent a8b6041 commit 19440ca
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 19440ca

Please sign in to comment.