Skip to content

Syncing from upstream OCA/storage (18.0)#369

Merged
bt-admin merged 27 commits into
brain-tec:18.0from
OCA:18.0
Jun 12, 2026
Merged

Syncing from upstream OCA/storage (18.0)#369
bt-admin merged 27 commits into
brain-tec:18.0from
OCA:18.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

simahawk and others added 27 commits June 10, 2026 12:26
For the case of private files stored externally it might be necessary
to view the file via Odoo directly because you can avoid to setup a private CDN
with complex authentication (eg: token, vpn, etc).

In this way, the files can be proxied by the controller.
So far the backend was added only auto-magically on media or image creation.
However, this is a partial behavior and since the backend is not editable
you cannot decide where to put your file if not via global conf.

This chance allows to edit the backend while still pre-loading the default one.
Provide data so that the URL is generated properly.
* group by backend
* search by public/private
* group by backend
* search by public/privte
Signed-off-by simahawk
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: storage-18.0/storage-18.0-storage_media_product
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_media_product/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: storage-18.0/storage-18.0-storage_thumbnail
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_thumbnail/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: storage-18.0/storage-18.0-storage_image
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_image/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: storage-18.0/storage-18.0-storage_image_product
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_image_product/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: storage-18.0/storage-18.0-storage_media
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_media/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: storage-18.0/storage-18.0-storage_file
Translate-URL: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_file/
@bt-admin bt-admin added the 18.0 label Jun 12, 2026
@bt-admin bt-admin merged commit ecc2d94 into brain-tec:18.0 Jun 12, 2026
4 checks passed
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.83721% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.47%. Comparing base (b0f004c) to head (97cf807).
⚠️ Report is 84 commits behind head on 18.0.

Files with missing lines Patch % Lines
storage_file/controllers/main.py 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             18.0     #369      +/-   ##
==========================================
+ Coverage   87.13%   87.47%   +0.33%     
==========================================
  Files         197      201       +4     
  Lines        6686     6856     +170     
  Branches      564      567       +3     
==========================================
+ Hits         5826     5997     +171     
+ Misses        667      665       -2     
- Partials      193      194       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants