Skip to content

[18.0][IMP] hr_shift: allow regenerate_shifts on a multi-record selection - #41

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
invitu:18.0-imp_hr_shift_add_multirecord_action
Jul 23, 2026
Merged

[18.0][IMP] hr_shift: allow regenerate_shifts on a multi-record selection#41
OCA-git-bot merged 1 commit into
OCA:18.0from
invitu:18.0-imp_hr_shift_add_multirecord_action

Conversation

@cvinh

@cvinh cvinh commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@cvinh
cvinh force-pushed the 18.0-imp_hr_shift_add_multirecord_action branch from 118bf45 to c09f800 Compare July 20, 2026 17:07
@pedrobaeza pedrobaeza added this to the 18.0 milestone Jul 22, 2026
self.state = "assignment"

def regenerate_shifts(self):
self.shift_ids.unlink()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one is already multi-record aware.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread hr_shift/models/shift_planning.py
Comment thread hr_shift/tests/test_hr_shift.py Outdated
self.assertEqual(shift_b_line_1.state, "assigned")
self.assertEqual(shift_b_line_1.template_id, self.template_afternoon)

def test_hr_shift_regenerate_shifts_multi(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This test is not adding value.

@cvinh cvinh Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed

@cvinh
cvinh force-pushed the 18.0-imp_hr_shift_add_multirecord_action branch from c09f800 to d7a735d Compare July 22, 2026 18:42
@cvinh

cvinh commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

no more codecov ?

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

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

@OCA-git-bot
OCA-git-bot merged commit 7695509 into OCA:18.0 Jul 23, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@cvinh
cvinh deleted the 18.0-imp_hr_shift_add_multirecord_action branch July 23, 2026 08:51
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