Skip to content

Conversation

@mathben
Copy link
Contributor

@mathben mathben commented Feb 4, 2026

Update work of #18

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ejemplo

This commit is not necessary.

if not (self.start_date and self.employee_id):
return False
return self.env["calendar.public.holiday"].is_public_holiday(
self.start_date, self.employee_id.id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.start_date, self.employee_id.id
self.start_date, self.employee_id.address_id.id

Careful, now the parameter is partner https://github.com/OCA/calendar/blob/2da90c675938ffc187739e0ecdc4b76550dd5edb/calendar_public_holiday/models/calendar_public_holiday.py#L112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants