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

[18.0][MIG] storage_thumbnail: Migration to 18.0 #435

Open
wants to merge 74 commits into
base: 18.0
Choose a base branch
from

Conversation

thienvh332
Copy link
Contributor

sebastienbeau and others added 30 commits November 19, 2024 18:29
…ule, storage_image and storage_thumbnail add a generic mixing for thumbnail owner
…t with the specifiation of the type of file binary or base64
…l key, extract method for building the domain, generate the url of the image correclty and add a test
OCA-git-bot and others added 27 commits November 19, 2024 18:29
The URL for all storage files is normally computed via backend.
This ensures that if you have different conf by env
you won't mess up w/ images coming from other envs (eg: prod).

This change makes sure that the URL which is used for the thumbs
is always computed by the backend.
Fixes the following warning:

Wrong Import in module storage_thumbnail, the class
<class 'odoo.addons.storage_thumbnail.tests.models.ModelTest'>
have been already imported.
The backend flag 'backend_view_use_internal_url'
can be used to control whether to use internal url or public url
for showing images in the backend w/ thumbs urls.
ACL is not relevant at all in these cases.
Both for creating and searching thumbnails.

This avoid an infinite creation of thumbnails on images as soon as an
`url_key` is provided.

This is a regression introduced by commit 1976597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.