Skip to content

[17.0][FIX] hr_shift: Prevent TypeError#24

Merged
OCA-git-bot merged 1 commit intoOCA:17.0from
Tecnativa:17.0-fix-hr_shift-tz
Jan 21, 2026
Merged

[17.0][FIX] hr_shift: Prevent TypeError#24
OCA-git-bot merged 1 commit intoOCA:17.0from
Tecnativa:17.0-fix-hr_shift-tz

Conversation

@victoralmau
Copy link
Member

FWP from 15.0: #23

Prevent TypeError

Use case example:

  • Create an hr.shift.planning.line record with a start time of 00:00:00 and an end time of 08:00:00
  • The employee must have a work schedule after 08:00:00 (for example, starting at 13:00:00)
  • The report from the hr_attendance_report_theoretical_time module is used. The hr_shift methods will mix records and cause an error.

TypeError: inconsistent models in: 'hr.shift.planning.line()' inand 'resource.calendar.attendance()'

Please @pedrobaeza and @carlos-lopez-tecnativa can you review it?

@Tecnativa TT60298

Use case example:
- Create an hr.shift.planning.line record with a start time of 00:00:00 and an end time of 08:00:00
- The employee must have a work schedule after 08:00:00 (for example, starting at 13:00:00)
- The report from the hr_attendance_report_theoretical_time module is used. The hr_shift methods will mix records and cause an error.

TypeError: cannot union different models: 'hr.shift.planning.line()' and 'resource.calendar.attendance()'

TT60298
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-24-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f0e85cd into OCA:17.0 Jan 21, 2026
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 9bcc757. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 17.0-fix-hr_shift-tz branch January 21, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants