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][FIX] avoid test failures resulting from not yet migrated localizations #4734

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

hbrunn
Copy link
Member

@hbrunn hbrunn commented Feb 10, 2025

since OCA/OCB@562aca5, the translations of localizations of the companies created by the v16 demo data are actually loaded in account's register_hook, which fails eventually if a localization hasn't been migrated yet.

I don't think we should deactivate the translation loading altogether, because that's a nice sanity check for localizations when we have them.

I also don't think we should modify the account migration script, as our current problem is an artifact of not having localizations migrated yet, which will go away once that's the case. So handling this in the test script seems the way to go to me.

@hbrunn hbrunn marked this pull request as ready for review February 10, 2025 11:38
@hbrunn hbrunn added this to the 17.0 milestone Feb 10, 2025
Copy link
Contributor

@MiquelRForgeFlow MiquelRForgeFlow left a comment

Choose a reason for hiding this comment

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

Thanks!

@MiquelRForgeFlow
Copy link
Contributor

Could you add this to v18 PR too? :)

@hbrunn
Copy link
Member Author

hbrunn commented Feb 10, 2025

will do when we get to account v18, for the time being I'm waiting for reviews for the branch initialization + base migration

@MiquelRForgeFlow
Copy link
Contributor

/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-4734-by-MiquelRForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b008ec3 into OCA:17.0 Feb 10, 2025
4 checks passed
@OCA-git-bot
Copy link
Contributor

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

3 participants