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

[17.0][MIG] hr_holidays_natural_period: Migration to version 17.0 #141

Merged
merged 20 commits into from
Sep 17, 2024

Conversation

carlos-lopez-tecnativa
Copy link

@Tecnativa TT50070

@pedrobaeza @victoralmau @peluko00 could you please take a look?

victoralmau and others added 19 commits September 12, 2024 09:37
…ve types

[UPD] Update hr_holidays_natural_period.pot

[UPD] README.rst
…ployee is not set yet

hr_holidays_natural_period 13.0.1.0.1
… employee set yet

hr_holidays_natural_period 13.0.1.0.2
…ion.

Previously, the _exist_interval_in_date () function always returned False, which always created a new interval.
Although this was totally incorrect, it was detected in a real use case when there were working days and holidays in the date range causing incorrect overtime.
TT33779

hr_holidays_natural_period 13.0.1.0.3
TT37026

[UPD] Update hr_holidays_natural_period.pot

[UPD] README.rst
Currently translated at 100.0% (6 of 6 strings)

Translation: hr-holidays-16.0/hr-holidays-16.0-hr_holidays_natural_period
Translate-URL: https://translation.odoo-community.org/projects/hr-holidays-16-0/hr-holidays-16-0-hr_holidays_natural_period/es/
…reation

It is necessary to recalculate the duration value in the create() method when it is done by UX.

Fixes OCA#105
@pedrobaeza
Copy link
Member

/ocabot migration hr_holidays_natural_period

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Sep 12, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Sep 12, 2024
4 tasks
@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 17.0-mig-hr_holidays_natural_period branch from 16cc80f to 8424b0a Compare September 16, 2024 11:06
@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 17.0-mig-hr_holidays_natural_period branch from 8424b0a to df9187e Compare September 16, 2024 11:21
@carlos-lopez-tecnativa
Copy link
Author

The test failed after this PR odoo/odoo#153044.

@victoralmau
Copy link
Member

The test failed after this PR odoo/odoo#153044.

I'm sorry but I don't see any relation, can you rebase to check the error that occurs (in any case it will have to be solved).

@carlos-lopez-tecnativa
Copy link
Author

The test failed after this PR odoo/odoo#153044.

I'm sorry but I don't see any relation, can you rebase to check the error that occurs (in any case it will have to be solved).

Because Odoo removed the field name from the view and now uses private_name, I removed it from the test since name is computed.
https://github.com/odoo/odoo/pull/153044/files#diff-668cc4892b604ac124476733a1f547a32a2314be62e6e038fa876e29996fe941L165

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

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

Code and functional review OK.

I don't understand the error in the tests indicated #141 (comment) (I don't see any error, PR and locally).

Copy link
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 merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-141-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 9851c50 into OCA:17.0 Sep 17, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 17.0-mig-hr_holidays_natural_period branch September 17, 2024 17:31
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.