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

[16.0][MIG] storage_thumbnail #272

Closed
wants to merge 69 commits into from

Conversation

sbejaoui
Copy link
Contributor

sebastienbeau and others added 30 commits August 14, 2023 14:44
…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-travis and others added 23 commits August 14, 2023 14:44
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.
@lmignon
Copy link
Sponsor Contributor

lmignon commented Aug 21, 2023

@sbejaoui We are rewriting these addons to be based on fs_file #261

@lmignon lmignon closed this Sep 25, 2023
len-foss pushed a commit to lambdao-dev/storage that referenced this pull request Dec 13, 2023
Signed-off-by pedrobaeza
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.