Search 1.9 billion lines of Odoo code on GitHub

base_fileurl_field

Author: Camptocamp, Odoo Community Association (OCA)
License: AGPL-3
Branch: 15.0
Repository: acsone/odoo-cloud-platform
Dependencies: base_attachment_object_storage
Languages: Python (80, 74.8%), and reStructuredText (27, 25.2%)
Other branches: 12.0, 13.0, 13.0-monitoring_status-no-save-session-sbi, 14.0, 14.0-cdd_master, 16.0, 16.0-attachment-s3-sbi, 16.0-ebt-s3-extraargs, 16.0-ebt_master, 16.0-mig-s3, 16.0-mig-s3-lmi, denis_v13, merge-branch-1151-12.0.1.1.0, merge-branch-1151-12.0.1.2.0, merge-branch-1151-135_update_project_and_submodules-4b5c59d2, merge-branch-1151-79_install_migrated_modules-263768bc, merge-branch-1151-79_install_migrated_modules-a314611d, merge-branch-1151-BSQOQ12-78-263768bc, merge-branch-1151-BSQOQ12-78-a59e0754, merge-branch-1151-BSQOQ12-78-c8f9399f, merge-branch-2477-13.0-init-c2f22125, merge-branch-2477-13.0-init2-da62cb54, merge-branch-2477-master-23e1b9ac, merge-branch-2477-master-7c6dc33f, merge-branch-2543-12.0-fa42defa, merge-branch-2543-12.0.1.17.0, merge-branch-2543-add-base_fileurl_field-2cd8af10, merge-branch-2543-bsrd-199_update_odoo_cloud_platform-86233f82, merge-branch-2543-bssmb-233_set_public_read_acl_on_s3_objects-8b98c194, merge-branch-2543-bssmb-233_set_public_read_acl_on_s3_objects-e76770d5, merge-branch-2543-bssmb-25_web_url_fields_s3-188365c5, merge-branch-2543-bssmb-25_web_url_fields_s3-2fe4a35d, merge-branch-2543-bssmb-25_web_url_fields_s3-758bda9d, merge-branch-2543-mig-base_webdb-4436c761, merge-branch-2757-13.0.0.1.0, merge-branch-2757-master-6cfa4609, merge-branch-2762-13.0.1.0.0, merge-branch-2762-13.0.2.0.0, merge-branch-2762-13.0.3.0.0, merge-branch-2762-13.0.3.0.1, merge-branch-2762-13.0.3.0.2, merge-branch-2762-13.0.3.0.3, merge-branch-2762-BSRD-286_Check_odoo-cloud-platform-1de6d1d5, merge-branch-2762-BSRD-286_Check_odoo-cloud-platform-32273415, merge-branch-2762-BSRD-286_Check_odoo-cloud-platform-c3cfd274, and revert-101-13.0-monitoring_check_db_connection
Other repositories: ERPLibre/odoo-cloud-platform, GSLabIt/odoo-cloud-platform, MjAbuz/odoo-cloud-platform, NCS-75/odoo-cloud-platform, PCatinean/odoo-cloud-platform, RL-OtherApps/odoo-cloud-platform, TelmoSenseFly/odoo-cloud-platform, Tonow-c2c/odoo-cloud-platform, Wiserby/odoo-cloud-platform, acarmisc/odoo-cloud-platform, agrista/odoo-cloud-platform, akretion/odoo-cloud-platform, ap-wtioit/odoo-cloud-platform, asiellb/odoo-cloud-platform, avoinsystems/odoo-cloud-platform, camptocamp/odoo-cloud-platform, celm1990/odoo-cloud-platform, difra/odoo-cloud-platform, exosoftware/c2c-odoo-cloud-platform, grindtildeath/odoo-cloud-platform, guewen/odoo-cloud-platform, gurneyalex/odoo-cloud-platform, hibou-io/camptocamp-cloud-platform, ircodoo/odoo-cloud-platform, itsalgeria/odoo-cloud-platform, junariltd/odoo-cloud-platform, leemannd/odoo-cloud-platform, loftwah/odoo-cloud-platform, modoolar/odoo-cloud-platform, mohamed-helmy/odoo-cloud-platform, oondeo/odoo-cloud-platform, p-tombez/odoo-cloud-platform, pasgou/odoo-cloud-platform, paulpwo/odoo-cloud-platform, royalline1/odoo-cloud-platform, sadeqamin/odoo-cloud-platform, sbidoul/odoo-cloud-platform, sebalix/odoo-cloud-platform, sebastienbeau/odoo-cloud-platform, simahawk/odoo-cloud-platform, smussie/odoo-cloud-platform, suningwz/odoo-cloud-platform, tirix/odoo-cloud-platform, ursais/odoo-cloud-platform-1, vidtsin/odoo-cloud-platform, vrenaville/odoo-cloud-platform, wahello/odoo-cloud-platform, xuanox/odoo-cloud-platform, and yvaucher/odoo-cloud-platform

<h1 class="title">Base FileURL Field</h1> <p>This module adds a new field type FileURL to Odoo. FileURL is an extension of field type Binary, with the aim to store its value on any kind of external storage. It's been built with the focus on Amazon S3 but could be used with other storage solution as long as it extends the functionality of base_attachment_object_storage.</p> <a name="usage"></a> <h2>Usage</h2> <dl class="docutils"> <dt>FileURL fields is intended to store Binary data on an external storage</dt> <dd>with the possibility to be accessed outside of Odoo.</dd> </dl> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field"><th class="field-name">param storage_location:</th><td class="field-body">Required external storage that must be activated on the system (cf base_attachment_storage)</td> </tr> <tr class="field"><th class="field-name">param storage_path:</th><td class="field-body">Path to be used as a prefix to the filename in the storage solution (must be used with filename)</td> </tr> <tr class="field"><th class="field-name">param filename:</th><td class="field-body">Field on the same model which stores the filename. Will be used to set fname on ir.attachment and, if storage_path is defined, will be passed to force the storage key.</td> </tr> </tbody> </table> <a name="limitations-issues"></a> <h2>Limitations / Issues</h2> <ul class="simple"> <li>Filename must be stored in a separate field on the same model defining a FileURL field.</li> <li>While using storage_path and filename attributes, there's a risk existing storage object are overwritten if files with the same filename are added on different records.</li> </ul> <a name="example"></a> <h2>Example</h2> <p>cf <cite>test_base_fileurl_field</cite> module in <a class="reference external" href="https://github.com/camptocamp/odoo-cloud-platform">https://github.com/camptocamp/odoo-cloud-platform</a></p>