| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 2631 |
| Technical Name |
custom_azure_attachment_storage |
| License | AGPL-3 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 2631 |
| Technical Name |
custom_azure_attachment_storage |
| License | AGPL-3 |
Custom Azure Attachment Storage
Store Odoo attachments in Azure Blob Storage and migrate existing files with a scheduled job.
Developed by 2BIT Digital GmbH — your Swiss Odoo partner for payroll, accounting, eCommerce, manufacturing and custom business solutions.
Overview
System administrators can route Odoo attachment storage directly to an Azure Blob Storage container, keeping the Odoo database lean and binary files in a scalable cloud location.
The module pre-configures an Azure filesystem storage backend and provides a manually triggered scheduled job to migrate existing database attachments to the cloud store in controlled batches.
Business Impact
Why You Need This Module
Large Odoo installations accumulate significant binary data in the database over time. PDFs, images, Office documents and videos stored in the database slow down backups and increase hosting costs.
Moving that data to Azure Blob Storage separates compute from storage, reduces database size, and makes files available through a scalable and redundant cloud service.
Which Problems It Solves
- Oversized Odoo database caused by binary attachments stored directly in PostgreSQL
- No controlled migration path for existing database attachments to cloud storage
- Missing configuration for Azure Blob Storage in standard Odoo
Key Benefits For System Administrators
- Pre-configured Azure Blob Storage backend, ready after setting the connection string
- Selective migration of PDFs, Office documents, images and videos above 30 KB
- Batched migration in steps of 100 records with commit and progress logging
- Obfuscated filenames in the cloud container for additional security
How It Works
- Set the
AZURE_STORAGE_CONNECTION_STRINGenvironment variable on the Odoo server. - Install the module to activate the pre-configured Azure Blob Storage backend as the default attachment store.
- New attachments matching the file type rules are written directly to Azure Blob Storage.
- Run the inactive scheduled job Manual: Migrate Attachments to Azure once to migrate existing database attachments in batches of 100.
- Monitor migration progress in the Odoo server log.
Installation
- Mount this module as an Odoo custom addon.
- Update the apps list in Odoo.
- Install the module from the Apps menu.
Dependencies
- Odoo modules:
fs_attachment - Python dependencies:
fsspec,adlfs,packaging,python-slugify
Need Swiss Odoo Experts?
Whether it's payroll, accounting, or custom development — 2BIT Digital GmbH helps Swiss companies get the most out of Odoo.
Have questions or need customization? Just reach out — we’re happy to help.
Contact 2BIT Digital GmbH
Please log in to comment on this module