Skip to content

[16.0][MIG] storage_thumbnail#272

Closed
sbejaoui wants to merge 69 commits intoOCA:16.0from
acsone:16.0-storage_thumbnail-sbj
Closed

[16.0][MIG] storage_thumbnail#272
sbejaoui wants to merge 69 commits intoOCA:16.0from
acsone:16.0-storage_thumbnail-sbj

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.
@sbejaoui sbejaoui force-pushed the 16.0-storage_thumbnail-sbj branch from 551a53f to b4a543b Compare August 14, 2023 13:33
@sbejaoui sbejaoui force-pushed the 16.0-storage_thumbnail-sbj branch from b4a543b to a8409f5 Compare August 14, 2023 13:38
@lmignon
Copy link
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.

Comments