| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 273 |
| Technical Name |
storage_cloud_azure_extended |
| License | OPL-1 |
Azure Cloud Storage - Extended
Extends Odoo 18's native cloud_storage_azure with immediate all-attachment upload, smart mimetype filtering, SHA1-based deduplication, and safe Azure blob deletion - all in the same transaction, no CRON wait.
Key Features
Everything missing from the base module, added without touching core code
Uploads every eligible binary attachment - not just chatter - to Azure. Covers form saves, generated reports, imports, and background code.
When an attachment is created, it is uploaded to Azure in the same transaction. The filestore is used only transiently - never accumulates.
Automatically excludes web-served file types (JS, CSS, HTML, JSON, XML, SVG) that add overhead without meaningful storage savings.
Before uploading, checks if the same file already exists in Azure (by SHA1 checksum). If found, reuses the existing blob - no duplicate storage cost.
Azure blobs are deleted only when the last attachment record referencing that URL is removed. Multiple records sharing a blob via dedup stay protected.
Files exceeding the sync size threshold and pre-installation historical attachments are handled by the scheduled action - fully compatible with cloud_storage_migration.
Base Module vs This Extension
| Capability | cloud_storage_azure (base) | + cloud_storage_azure_extend |
|---|---|---|
| Chatter / mail attachments | Yes | Yes |
| Form / report / import attachments | No | Yes - Immediate |
| Mimetype exclusion filter | No | Yes |
| File deduplication (SHA1) | No | Yes |
| Safe Azure blob deletion | No | Yes |
| cloud_storage_migration dedup | No | Yes |
Setup & Configuration
1. Configure Your Azure Account
Go to Settings > General Settings > Cloud Storage.
Enter your Azure Storage Account Name, Container Name,
Tenant ID, Client ID, and Client Secret, then save.
The addon verifies the connection by performing a test upload and download.
Follow Microsoft's guide to create a service principal:
Azure Service Principal Setup
2. File Size Restrictions
Navigate to Settings > Technical > Parameters > System Parameters
to fine-tune the upload thresholds. Set
cloud_storage_extend_min_file_size (minimum bytes to upload, default 0) and
cloud_storage_extend_max_sync_size (maximum bytes for immediate upload,
default 50 MB - files above this are handled by the CRON instead).
3. Migration CRON - Activate & Run Manually
Go to Settings > Technical > Scheduled Actions and open
"Upload All Eligible Attachments to Azure Cloud Storage".
Set Active = True to enable hourly processing of historical and
large attachments. You can also click "Run Manually" at any time
to trigger an immediate batch upload without waiting for the next scheduled run.
Tune the batch via cloud_storage_extend_batch_size (default 100).
How It Works
Attachment lifecycle with this extension installed
Any source - form save, report, import, or chatter
Mimetype, file size, and res_id validated. Excluded types stay local.
SHA1 matched against existing cloud attachments. Match found: reuse URL.
File uploaded via SAS URL. Record updated to type=cloud_storage.
Local copy removed on commit. Zero disk accumulation.
Get in Touch
Scan to chat with us instantly
Developer: Omar Nabil
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