Skip to content

[17.0][FIX] hr_shift: prevent shift planning being counted as lunch#21

Merged
OCA-git-bot merged 1 commit intoOCA:17.0from
Neitherkx:17.0-fix-hr_shift-planning-as-lunch
Sep 12, 2025
Merged

[17.0][FIX] hr_shift: prevent shift planning being counted as lunch#21
OCA-git-bot merged 1 commit intoOCA:17.0from
Neitherkx:17.0-fix-hr_shift-planning-as-lunch

Conversation

@Neitherkx
Copy link
Contributor

[FIX] hr_shift: prevent shift planning being counted as lunch

This fixes a bug in the hr_shift module where shift planning records were treated as "lunch"
during worked hours calculation, subtracting them from the employee's worked hours.

Now, the planned shifts are correctly counted as regular working hours.

Closes #20

@Neitherkx
Copy link
Contributor Author

Hi @Abranes could you take a look at this issue when you have a moment?

@pedrobaeza pedrobaeza added this to the 17.0 milestone Sep 12, 2025
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.

The change is coherent.

@pedrobaeza pedrobaeza changed the title [FIX] hr_shift: prevent shift planning being counted as lunch [17.0][FIX] hr_shift: prevent shift planning being counted as lunch Sep 12, 2025
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.

I suppose we need to define an extra field in shifts for specifying the lunch time and take that into account for the method.

/ocabot merge patch

Please fw-port it to 18.

@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-21-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit c175e7b into OCA:17.0 Sep 12, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

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