Skip to content

[17.0][ADD] hr_holidays_public_regional: New module hr_holidays_public_regional#202

Open
peluko00 wants to merge 1 commit intoOCA:17.0from
APSL:17.0-add-hr_holidays_public_regional
Open

[17.0][ADD] hr_holidays_public_regional: New module hr_holidays_public_regional#202
peluko00 wants to merge 1 commit intoOCA:17.0from
APSL:17.0-add-hr_holidays_public_regional

Conversation

@peluko00
Copy link
Copy Markdown

@peluko00 peluko00 commented Jul 16, 2025

This module allows you to manage public regional holidays by defining them in dedicated calendars and assigning them to employees.
When enabled on a leave type, public regional holidays linked to the employee are automatically excluded from the leave duration calculation by default.

cc https://github.com/APSL 10205
@miquelalzanillas @javierobcn @mpascuall @BernatObrador @ppyczko @lbarry-apsl please review

@peluko00 peluko00 force-pushed the 17.0-add-hr_holidays_public_regional branch 10 times, most recently from 25e95f0 to a6fdc62 Compare July 21, 2025 07:07
@peluko00 peluko00 marked this pull request as ready for review July 21, 2025 07:08
Copy link
Copy Markdown
Member

@lbarry-apsl lbarry-apsl left a comment

Choose a reason for hiding this comment

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

LGTM, code and runboat reviewed

@peluko00 peluko00 force-pushed the 17.0-add-hr_holidays_public_regional branch 3 times, most recently from c8610e3 to 0d19f01 Compare July 25, 2025 12:25
Copy link
Copy Markdown

@mpascuall mpascuall left a comment

Choose a reason for hiding this comment

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

LGTM!

@peluko00 peluko00 force-pushed the 17.0-add-hr_holidays_public_regional branch from 0d19f01 to 4000b12 Compare August 1, 2025 08:54
@github-actions
Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 30, 2025
@peluko00
Copy link
Copy Markdown
Author

peluko00 commented Dec 1, 2025

Sorry for ping directly here @pedrobaeza , can you review please?

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

I don't find the need of this module, as you can put in the existing m2m in the public holiday lines the country states you need.

@peluko00
Copy link
Copy Markdown
Author

peluko00 commented Dec 1, 2025

I don't find the need of this module, as you can put in the existing m2m in the public holiday lines the country states you need.

For this reason, I made this module: to avoid depending on individual contacts when assigning a country state. This makes it easier to select a calendar.

@pedrobaeza
Copy link
Copy Markdown
Member

You are not depending on individual contacts. Just fill the work address in the employee. It's the minimum to do...

@peluko00
Copy link
Copy Markdown
Author

peluko00 commented Dec 1, 2025

Even if an employee lives in one location, they might be assigned a public holiday calendar corresponding to a different geographical region (e.g., the location of their primary office or client) because the company's internal policy allows for such operational flexibility.

The module is designed specifically for this purpose. It enables the company to:

  • Define separate regional holiday calendars (e.g., based on state, province, or country).

  • Assign these specific regional calendars to individual employees, regardless of the address listed on their primary contact record.

This ensures that the employee's time-off management and working days are managed accurately according to the company's operational requirements rather than just their residential address.

@pedrobaeza
Copy link
Copy Markdown
Member

The work address should be attached to the one having the rights and the obligations, not any free one. I see this module as redundant, but if others consider it useful, I won't block.

@peluko00
Copy link
Copy Markdown
Author

peluko00 commented Dec 1, 2025

What's your opinion @ivantodorovich ?

@ivantodorovich
Copy link
Copy Markdown
Contributor

I'm not currently using neither features so I'm not informed enough to have an opinion, sorry

@peluko00
Copy link
Copy Markdown
Author

peluko00 commented Dec 4, 2025

Can we merge @pedrobaeza?

@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 7, 2025
@peluko00 peluko00 force-pushed the 17.0-add-hr_holidays_public_regional branch 2 times, most recently from b44cf06 to 0a150cb Compare December 11, 2025 08:44
@peluko00 peluko00 force-pushed the 17.0-add-hr_holidays_public_regional branch from 0a150cb to fbfb7f4 Compare December 11, 2025 09:30
@peluko00
Copy link
Copy Markdown
Author

Any update about this @pedrobaeza?

@pedrobaeza
Copy link
Copy Markdown
Member

As said, I won't block, but don't agree either.

@peluko00
Copy link
Copy Markdown
Author

This is already running in production and working as intended. Could you please merge it?

@pedrobaeza
Copy link
Copy Markdown
Member

Yeah, you should find another PSC to merge it.

@peluko00
Copy link
Copy Markdown
Author

@dreispt can you take a look please when you have time? Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants