Skip to content

[18.0][MIG] hr_holidays_public_overtime: Migration to 18.0 - #190

Open
BhaveshHeliconia wants to merge 7 commits into
OCA:18.0from
HeliconiaIO:18.0-mig-hr_holidays_public_overtime
Open

[18.0][MIG] hr_holidays_public_overtime: Migration to 18.0#190
BhaveshHeliconia wants to merge 7 commits into
OCA:18.0from
HeliconiaIO:18.0-mig-hr_holidays_public_overtime

Conversation

@BhaveshHeliconia

Copy link
Copy Markdown
Contributor

No description provided.

@BhaveshHeliconia
BhaveshHeliconia force-pushed the 18.0-mig-hr_holidays_public_overtime branch from 9a33c9a to 10ab746 Compare May 20, 2025 07:44
@BhaveshHeliconia
BhaveshHeliconia force-pushed the 18.0-mig-hr_holidays_public_overtime branch from 10ab746 to d8c1a24 Compare July 25, 2025 06: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 23, 2025
@BhaveshHeliconia
BhaveshHeliconia force-pushed the 18.0-mig-hr_holidays_public_overtime branch from d8c1a24 to b1c9853 Compare November 25, 2025 05:38
@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 30, 2025
@BhaveshHeliconia
BhaveshHeliconia force-pushed the 18.0-mig-hr_holidays_public_overtime branch from b1c9853 to dbc6028 Compare March 13, 2026 02:55

@gfcapalbo gfcapalbo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Add a short description to MR and check my comments.
Looks good.

Comment thread hr_holidays_public_overtime/i18n/de.po Outdated
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should reference 18.0

def _update_overtime(self, employee_attendance_dates=None):
"""Set the flag in context to exclude public holidays"""
if employee_attendance_dates is None:
employee_attendance_dates = self._get_attendances_dates()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We know that _get_attendances_dates will always return a defaultdict https://github.com/OCA/OCB/blob/18.0/addons/hr_attendance/models/hr_attendance.py#L307 and this is where our parameter employee_attendance_date comes from.

I have checked the 18 source code and see no reason to cover the case of a normal dict by protecting user getattr. this is okay.

@@ -0,0 +1,4 @@
- Holger Brunn \<mail@hunki-enterprises.com\>
(<https://hunki-enterprises.com>)
- [Heliconia Solutions Pvt. Ltd.\](<https://www.heliconia.io>)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i think an escape is missing

"hr_holidays_public",
"hr_attendance",
],
"auto_install": True,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this is okay because we are bridging hr__holidays_public and the core attendance module.

@BhaveshHeliconia
BhaveshHeliconia force-pushed the 18.0-mig-hr_holidays_public_overtime branch from dbc6028 to 87ece5a Compare March 16, 2026 05:54
@BhaveshHeliconia

Copy link
Copy Markdown
Contributor Author

@gfcapalbo I've addressed your suggestions and pushed the changes. Could you please review when you get a chance?

@BhaveshHeliconia
BhaveshHeliconia force-pushed the 18.0-mig-hr_holidays_public_overtime branch from 87ece5a to 76326f5 Compare July 24, 2026 04:57
@OCA-git-bot OCA-git-bot added series:18.0 mod:hr_holidays_public_overtime Module hr_holidays_public_overtime labels Jul 24, 2026
@jans23

jans23 commented Aug 22, 2026

Copy link
Copy Markdown

@gfcapalbo your feedback was addressed. Please have another look. Thanks.

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

Labels

mod:hr_holidays_public_overtime Module hr_holidays_public_overtime series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants