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] supplier_calendar: Migration to 17.0 #2264

Merged

Conversation

bizzappdev
Copy link
Contributor

No description provided.

NuriaXifre and others added 24 commits May 3, 2024 10:48
Fix pre-commit errors by addind the correct `website` key
Currently translated at 100.0% (8 of 8 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-supplier_calendar
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-supplier_calendar/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-supplier_calendar
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-supplier_calendar/es/
when delta argument is a float `plan_days` method can return
unexpected False result. This can lead to silent errors.
Therefore we ensure that delta is a integer in the helper.
@bizzappdev bizzappdev marked this pull request as ready for review May 3, 2024 05:52
Comment on lines 34 to 35
if isinstance(delta, float):
delta = round(delta)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @HviorForgeFlow

Those lines are on purpose and need to be there. (ref: #2255)

Please @bizzappdev do not remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it back. @LoisRForgeFlow

Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

Thanks!

@HviorForgeFlow
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-2264-by-HviorForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 9c0f267 into OCA:17.0 May 29, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

None yet