Skip to Content
Menu

Odoo S3 Attachment Storage

by
Odoo

120.13

v 18.0 Third Party 4
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 988
Technical Name odoo_s3_attachment
LicenseOPL-1
Websitehttps://works.hrsynd.com
Versions 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 988
Technical Name odoo_s3_attachment
LicenseOPL-1
Websitehttps://works.hrsynd.com
Versions 17.0 18.0

☁️ Odoo S3 Attachment Storage

📝 Overview

Odoo's default filestore becomes inefficient and bloated as your attachment size grows. This module offloads your attachment storage to an S3-compatible service, making backups faster, improving scalability, and separating concerns.

✨ Features

  • 🔗 Store Odoo attachments in an S3-compatible storage service.
  • ✅ Whitelist specific file types for S3 or local filestore storage.
  • 🔁 One-click file migration between local and S3 storage.
  • 🔒 Full sync between S3 file ACL and Odoo attachment visibility.
  • 🖼️ Supports preview and thumbnails exactly like the local filestore.
  • 🗂️ Identical directory structure in S3 as Odoo filestore for easy access.

⚙️ Requirements

  • Install all required Python libraries using: pip3 install -r requirements.txt

🔧 Configuration

Before installing, add the following to your odoo.conf:

s3_enable = True
s3_endpoint_url = https://some_endpoint.url
s3_bucket = some_bucket
s3_access_key_id = some_access_key
s3_secret_key = some_secret_key
    

Using Google Cloud Storage (GCS)? Follow these:

  • Generate HMAC keys from Google Cloud: Guide
  • Recommended GCS Bucket Settings:
    • ❌ Uncheck "Enforce public access prevention"
    • ✅ Set Access Control to "Fine Grained"

⚡ Usage

  • Navigate to Settings > S3 Attachment.
  • In the File Whitelist section, select the file types you want to store in S3.
    Note: It is not recommended to whitelist .js and .css files.
  • Save the settings.
  • Use the provided migration utilities as needed to transfer attachments between local storage and S3.

⚠️ Important Warning

If you ever plan to uninstall or disable this module, make sure to migrate all attachments back to the local filestore. Failing to do so may result in missing attachments across your database.

🖼️ Screenshots

Here are some screenshots of the module in action:

Configuration View Attachment

📩 Support

For any questions, bug reports, or support requests, contact:

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
There are no ratings yet!
Does it also support ecommerce
by
am-it@outlook.com
on 8/22/25, 4:47 AM Confirmed Purchase

Will the ecommerce images and odoo attachments old ones will be served directly from s3?

Also new images and attachments will be directly uploaded to s3 and served from there when someone visit the shop ?


Re: Does it also support ecommerce
by
Hersyanda Putra Adi
on 8/24/25, 3:09 PM Author

Hello. Yes, once you enable this module and configure what types of files to store in S3, newly uploaded files will be served and stored in S3.

However for legacy files, as long as the associated attachments/file have not been migrated to S3, the files will still be served from the server file storage.

The module has a built-in tool to help you migrate old files to S3 which you can access from settings, but if you don't want to migrate old files, that's no problem either because the module will automatically fetch the files from local file storage if they are not found in S3.