New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] hr_holidays : singleton error #27862

wants to merge 1 commit into
base: 12.0
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings


Just for now

@@ -355,7 +355,7 @@ def _compute_number_of_days_display(self):
def _compute_number_of_hours_display(self):
for holiday in self:
calendar = self.employee_id.resource_calendar_id or self.env.user.company_id.resource_calendar_id
calendar = holiday.employee_id.resource_calendar_id or self.env.user.company_id.resource_calendar_id
holiday.number_of_hours_display = holiday.number_of_days * (calendar.hours_per_day or HOURS_PER_DAY)
ProTip! Use n and p to navigate between commits in a pull request.