Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] hr_holidays_public: keep 'employee_id' field amongst method calls #164

Merged

Conversation

LauraCForgeFlow
Copy link

Before this commit, the employee_id's parameter value was lost when calling some functions from other ones in this module (for example, when calling _get_domain_states_filter from get_holidays_list.

However, this parameter might be necessary in the computation of some holidays, when having restrictions related to the employee, instead of the partner (accessed through employee.address_id). You can see an example of that in the module added in #161.

Copy link

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

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

code LGTM

Copy link

@AlexPForgeFlow AlexPForgeFlow left a comment

Choose a reason for hiding this comment

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

makes sense 👍

@OCA-git-bot
Copy link
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). 🤖

@AaronHForgeFlow
Copy link

ping @OCA/human-resources-maintainers

@Saran440
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-164-by-Saran440-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit c1d9a0d into OCA:16.0 Feb 26, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@MiquelRForgeFlow MiquelRForgeFlow deleted the 16.0-fix-hr_holidays_public-keep_employee_id branch February 26, 2025 11:10
@MiquelRForgeFlow
Copy link
Contributor

Please, forward port.

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.

7 participants