Search 1.9 billion lines of Odoo code on GitHub

attachment_azure

Author: Camptocamp, Open Source Integrators, Serpent Consulting Services, Odoo Community Association (OCA)
License: AGPL-3
Branch: merge-branch-2140-master-63d58919
Repository: camptocamp/odoo-cloud-platform
Dependencies: base_attachment_object_storage
Languages: Python (208, 86.7%), and reStructuredText (32, 13.3%)
Other branches: 10.0, 10.0-bp-cloud-abstract, 11.0, 12.0, 13.0, 14.0, 14fix_read_crdentials, 15.0, 16.0, 7.0, 9.0, 9.0-bp-attachment_azure-containername, 9.0-bp-cloud_platform_azure, 9.0-bp-monitoring_prometheus, fix_readme_#244, irsa, merge-branch-1151-14.0-1baba068, merge-branch-1151-14.0-3214c65f, merge-branch-1151-BSQOQ-786-56147fbc, merge-branch-1151-k8s-4132abc4, merge-branch-1151-k8s-e448af51, merge-branch-1305-15.0.0.1.0, merge-branch-1305-migration_scripts-2880942d, merge-branch-1305-pr_update-53df968a, merge-branch-1511-14.0-7a675709, merge-branch-1511-14.0.0.0.2, merge-branch-1995-14.0-5264c06d, merge-branch-1995-14.0-6d4914be, merge-branch-1995-14.0.1.0.1, merge-branch-1995-14.0.1.0.2, merge-branch-1995-14.0.1.0.3, merge-branch-1995-14.0.1.0.4, merge-branch-1995-14.0.1.0.5, merge-branch-1995-14.0.1.1.0, merge-branch-1995-14.0.1.1.1, merge-branch-1995-14.0.1.10.0, merge-branch-1995-14.0.1.2.0, merge-branch-1995-14.0.1.3.0, merge-branch-1995-14.0.1.4.0, merge-branch-1995-14.0.1.4.1, merge-branch-1995-14.0.1.4.2, merge-branch-1995-14.0.1.4.3, merge-branch-1995-14.0.1.4.4, merge-branch-1995-14.0.1.4.5, merge-branch-1995-14.0.1.5.0, merge-branch-1995-14.0.1.6.0, merge-branch-1995-14.0.1.6.1, merge-branch-1995-14.0.1.6.2, merge-branch-1995-14.0.1.6.3, merge-branch-1995-14.0.1.6.4, merge-branch-1995-14.0.1.6.5, merge-branch-1995-14.0.1.6.6, merge-branch-1995-14.0.1.6.7, merge-branch-1995-14.0.1.6.8, merge-branch-1995-14.0.1.7.0, merge-branch-1995-14.0.1.7.1, merge-branch-1995-14.0.1.8.0, merge-branch-1995-14.0.1.9.0, merge-branch-1995-14.0.1.9.1, merge-branch-1995-object_storage_pr-06ed4020, merge-branch-2473-15.0.0.4.2, merge-branch-2473-15.0.0.4.3, merge-branch-2473-15.0.0.4.4, merge-branch-2473-SHELTER-95-0bb29c4c, merge-branch-2473-add-object_storage_unsafe_mode-5883e2ea, merge-branch-2473-add-object_storage_unsafe_mode-7c1ed514, merge-branch-2473-fix-mig-stable-cb772023, merge-branch-2543-12.0.5.0.1, merge-branch-2543-12.0.5.1.0, merge-branch-2543-12.0.5.2.0, merge-branch-2543-12.0.5.2.1, merge-branch-2543-12.0.5.2.2, merge-branch-2543-12.0.5.2.3, merge-branch-2543-12.0.6.0.0, merge-branch-2543-12.0.6.0.1, merge-branch-2543-12.0.6.0.2, merge-branch-2543-12.0.6.0.3, merge-branch-2543-12.0.6.0.4, merge-branch-2543-12.0.6.0.5, merge-branch-2543-12.0.6.0.6, merge-branch-2543-12.0.6.1.0, merge-branch-2543-12.0.6.1.1, merge-branch-2543-12.0.6.2.0, merge-branch-2543-12.0.6.2.1, merge-branch-2543-12.0.6.2.2, merge-branch-2543-12.0.6.3.0, merge-branch-2543-12.0.6.3.1, merge-branch-2543-12.0.6.4.0, merge-branch-2543-12.0.6.4.1, merge-branch-2543-12.0.6.4.2, merge-branch-2543-12.0.6.4.3, merge-branch-2543-BSSMWB-369-2fb68301, merge-branch-2543-BSSMWB-369-4b692a06, merge-branch-2543-BSSMWB-369-7bc10b18, merge-branch-2543-BSSMWB-369-c42713c5, merge-branch-2543-BSSMWB-369-cae125a2, merge-branch-2543-BSSMWB-369-dac71fd4, merge-branch-2543-BSSMWB-382-1d84873f, merge-branch-2549-14.0-574a41aa, merge-branch-2802-14.0.2.1.0, merge-branch-2802-14.0.2.2.0, merge-branch-2828-13.0.1.20.0, merge-branch-2828-13.0.1.20.1, merge-branch-2828-fix_monitoring_log_requests-5d88d607, merge-branch-2981-migration_fix-b9ae424f, merge-branch-877-15.0.0.0.2, merge-branch-877-15.0.0.0.3, merge-branch-877-15.0.0.1.0, merge-branch-877-15.0.0.1.1, merge-branch-877-BSLAN-50-cbb2385b, merge-branch-877-fix-bare-0187e5e7, merge-branch-877-fix-bare-53b544de, object_storage_unsafe_mode, and s3-dirty-fix
Other repositories: ERPLibre/odoo-cloud-platform, acsone/odoo-cloud-platform, agrista/odoo-cloud-platform, avoinsystems/odoo-cloud-platform, gurneyalex/odoo-cloud-platform, hibou-io/camptocamp-cloud-platform, leemannd/odoo-cloud-platform, oondeo/odoo-cloud-platform, p-tombez/odoo-cloud-platform, ursais/odoo-cloud-platform-1, vrenaville/odoo-cloud-platform, and yvaucher/odoo-cloud-platform

<h1 class="title">Attachments on Microsoft Azure Blob Storage</h1> <p>This addon allows to store the attachments (documents and assets) on <a class="reference external" href="https://docs.microsoft.com/azure/storage/blobs/">Microsoft Azure Blob Storage</a>.</p> <a name="configuration"></a> <h2>Configuration</h2> <p>Activate Azure Blob storage:</p> <ul class="simple"> <li>Create or set the system parameter with the key <code>ir_attachment.location</code> and the value in the form <code>azure</code>.</li> </ul> <p>Configure accesses with environment variables:</p> <ul class="simple"> <li><code>AZURE_STORAGE_CONNECTION_STRING</code> or</li> <li><code>AZURE_STORAGE_ACCOUNT_NAME</code></li> <li><code>AZURE_STORAGE_ACCOUNT_URL</code></li> <li><code>AZURE_STORAGE_ACCOUNT_KEY</code></li> </ul> <p>One container will be created per database using the <cite>RUNNING_ENV</cite> environment variable and the name of the database. By default, <cite>RUNNING_ENV</cite> is set to <cite>dev</cite>.</p> <p>The container name can be overridden with environment variable <code>AZURE_STORAGE_NAME</code>. The strings <code>{db}</code> and <code>{env}</code> can be used inside that variable and the values will be replaced respectively by the database name and environment name.</p> <p>The container name will also be stored in the database for each attachment, and will be used to access the right container in the storage.</p> <p>This addon must be added in the server wide addons with (<code>--load</code> option):</p> <p><code>--load=web,attachment_azure</code></p> <p>The System Parameter <code>ir_attachment.storage.force.database</code> can be customized to force storage of files in the database. See the documentation of the module <code>base_attachment_object_storage</code>.</p> <a name="limitations"></a> <h2>Limitations</h2> <ul class="simple"> <li>You need to call <code>env['ir.attachment'].force_storage()</code> after having changed the <code>ir_attachment.location</code> configuration in order to migrate the existing attachments to Azure Blob Storage.</li> </ul>