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

[FW][FIX] base: fix similar attachments #162917

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 22, 2024

While searching for a similar attachment, as the fallback url pattern is the same as the url pattern, the condition is never satisfied.

With this commit, the ignore_params parameter is used to find a similar attachment.

This was broken in a previous refactoring, ignore_params=True was added at the wrong place breaking this mechanism.
We also don't have to recompute the url in this case. If we didn't ignore the version, the url_pattern should be the exact url.

A test was adapted to test this fix.

Forward-Port-Of: #162654

While searching for a similar attachment, as the fallback url pattern is
the same as the url pattern, the condition is never satisfied.

With this commit, the ignore_params parameter is used to find a similar
attachment.

X-original-commit: 29fb4ac
@robodoo robodoo added the forwardport This PR was created by @fw-bot label Apr 22, 2024
@robodoo
Copy link
Contributor

robodoo commented Apr 22, 2024

Pull request status dashboard.

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 22, 2024

This PR targets saas-17.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@C3POdoo C3POdoo added the RD research & development, internal work label Apr 22, 2024
robodoo pushed a commit that referenced this pull request Apr 22, 2024
While searching for a similar attachment, as the fallback url pattern is
the same as the url pattern, the condition is never satisfied.

With this commit, the ignore_params parameter is used to find a similar
attachment.

closes #162917

X-original-commit: 29fb4ac
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
@robodoo robodoo closed this Apr 23, 2024
@d-fence d-fence deleted the saas-17.1-17.0-fix-similar-attachments-moc-RD_J-fw branch April 23, 2024 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants