Skip to content

[19.0][MIG] hr_holidays_public: Migration to 19.0#239

Merged
OCA-git-bot merged 68 commits into
OCA:19.0from
komit-consulting:19.0-mig-hr_holidays_public
Mar 13, 2026
Merged

[19.0][MIG] hr_holidays_public: Migration to 19.0#239
OCA-git-bot merged 68 commits into
OCA:19.0from
komit-consulting:19.0-mig-hr_holidays_public

Conversation

@namtnt
Copy link
Copy Markdown

@namtnt namtnt commented Jan 27, 2026

Fekete Mihai and others added 4 commits January 26, 2026 16:50
Add correct calculation of holidays in hr_public_holidays, instead of hr_holidays_compute_days.

Remove dependancy of contracts.

Add unlink at onchnage of public holiday lines.

Update code.

Fix flake.

Update code, add calculation in hours, update views.

Update flake.

Update calendar creation with no attendances, otherwise default values were set.

Remove config of show days/hours.

Update flake.

Update readme.

Rename module.

Updated holiday reports.

Update klake and pylint.

Update flaket.

Update hr_holidays_views.xml

Add readonly to show_full_days.

Update code according with comments.

Increase coverage.

update flake8.
Hours part will be in module hr_holidays_hour.
Reduce to the minimum the footprint of this module, adding only public
holidays as leaves in a transparent way by other modules.
@namtnt
Copy link
Copy Markdown
Author

namtnt commented Jan 27, 2026

Depends on: migration of calendar_public_holiday (#186)

@namtnt namtnt mentioned this pull request Jan 27, 2026
5 tasks
@cuongnmtm
Copy link
Copy Markdown

@namtnt Please use this to reference to the dependencies modules https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference(s)-to-another-pull-request(s)

@cuongnmtm
Copy link
Copy Markdown

Copy link
Copy Markdown

@cuongnmtm cuongnmtm left a comment

Choose a reason for hiding this comment

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

Please check my previous comments

pedrobaeza and others added 21 commits February 3, 2026 10:35
This has been totally reworked for decoupling parts, not depending now
on hr_holidays_public, and making transparent its use for compatibility
with other modules.
Since that PR, `_leave_intervals` is no longer called on days computations, so we
intercept the batch method, but leaving the previous one for retro-compatibility.
…oliday in leave and hour start from resource calendar in 00:01
@cuongnmtm cuongnmtm force-pushed the 19.0-mig-hr_holidays_public branch from d3ca861 to 5f109ef Compare February 4, 2026 16:37
Copy link
Copy Markdown

@cuongnmtm cuongnmtm left a comment

Choose a reason for hiding this comment

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

Code review LGTM

@leemannd
Copy link
Copy Markdown

leemannd commented Feb 26, 2026

Hello, FYI I am taking over the migration of the dependent module calendar_public_holiday in OCA/calendar#203

@leemannd
Copy link
Copy Markdown

Hello @cuongnmtm , @namtnt ,
Thank you for the work.

I don't see the usual pre-commit fix before the migration was something missing or there was no change?

Copy link
Copy Markdown

@leemannd leemannd left a comment

Choose a reason for hiding this comment

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

Base migration looks good

@cuongnmtm
Copy link
Copy Markdown

Hello @cuongnmtm , @namtnt , Thank you for the work.

I don't see the usual pre-commit fix before the migration was something missing or there was no change?

@leemannd I believe there is no change from pre-commit; otherwise, they would be included in the MIG commit.

@leemannd
Copy link
Copy Markdown

leemannd commented Mar 2, 2026

Hello @cuongnmtm the module calendar_public_holiday has been merged. Can you remove your commit adding a test PR?

@cuongnmtm cuongnmtm force-pushed the 19.0-mig-hr_holidays_public branch from 5f109ef to e4b48b6 Compare March 2, 2026 17:11
@cuongnmtm
Copy link
Copy Markdown

Hello @cuongnmtm the module calendar_public_holiday has been merged. Can you remove your commit adding a test PR?

Done.

@leemannd
Copy link
Copy Markdown

leemannd commented Mar 3, 2026

Hello @OCA/human-resources-maintainers , Do you have time to have a look at it and maybe merge it?

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@cyrilmanuel
Copy link
Copy Markdown
Contributor

hi @pedrobaeza could you merge this pr please ?

Copy link
Copy Markdown
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 migration hr_holidays_public
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Mar 13, 2026
@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-239-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 80854b9 into OCA:19.0 Mar 13, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 330d622. 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.