Skip to content

[17.0][FIX] avoid test failures resulting from not yet migrated localizations#4734

Merged
OCA-git-bot merged 1 commit into
OCA:17.0from
hbrunn:17.0-fix-tests-coa-loading
Feb 10, 2025
Merged

[17.0][FIX] avoid test failures resulting from not yet migrated localizations#4734
OCA-git-bot merged 1 commit into
OCA:17.0from
hbrunn:17.0-fix-tests-coa-loading

Conversation

@hbrunn

@hbrunn hbrunn commented Feb 10, 2025

Copy link
Copy Markdown
Member

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

@MiquelRForgeFlow MiquelRForgeFlow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

Could you add this to v18 PR too? :)

@hbrunn

hbrunn commented Feb 10, 2025

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
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
@OCA-git-bot

Copy link
Copy Markdown
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