Skip to content

[17.0][FIX] account: copy imd entry without ir.model.data's random name mechanism - #4806

Merged
OCA-git-bot merged 1 commit into
OCA:17.0from
hbrunn:17.0-account-base-model-copy
Mar 11, 2025
Merged

OCA-git-bot merged 1 commit into
OCA:17.0from
hbrunn:17.0-account-base-model-copy

Conversation

@hbrunn

@hbrunn hbrunn commented Mar 10, 2025

Copy link
Copy Markdown
Member

this avoids the override that causes tests to fail randomly in docker container, probably some entropy issue

@hbrunn hbrunn added this to the 17.0 milestone Mar 10, 2025
Comment on lines +423 to +424
models.BaseModel.copy(
imd,

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.

Suggested change
models.BaseModel.copy(
imd,
imd.copy(

Why not this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

because the override linked above overwrites the name with a randomly generated one, and the write in the first version only happens when the transaction is flushed. When the next create generates a new name, there doesn't seem to be enough randomness in the container to create a new name

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

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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