@@ -438,23 +438,22 @@ <h1>Filesystem Storage Backend</h1>
438438< ul class ="simple ">
439439< li > < a class ="reference internal " href ="#usage " id ="toc-entry-1 "> Usage</ a > < ul >
440440< li > < a class ="reference internal " href ="#configuration " id ="toc-entry-2 "> Configuration</ a > </ li >
441- < li > < a class ="reference internal " href ="#server-environment " id ="toc-entry-3 "> Server Environment</ a > </ li >
442- < li > < a class ="reference internal " href ="#migration-from-storage-backend " id ="toc-entry-4 "> Migration from storage_backend</ a > </ li >
441+ < li > < a class ="reference internal " href ="#migration-from-storage-backend " id ="toc-entry-3 "> Migration from storage_backend</ a > </ li >
443442</ ul >
444443</ li >
445- < li > < a class ="reference internal " href ="#known-issues-roadmap " id ="toc-entry-5 "> Known issues / Roadmap</ a > </ li >
446- < li > < a class ="reference internal " href ="#changelog " id ="toc-entry-6 "> Changelog</ a > < ul >
447- < li > < a class ="reference internal " href ="#section-1 " id ="toc-entry-7 "> 16.0.1.2.0 (2024-02-06)</ a > </ li >
448- < li > < a class ="reference internal " href ="#section-2 " id ="toc-entry-8 "> 16.0.1.1.0 (2023-12-22)</ a > </ li >
449- < li > < a class ="reference internal " href ="#section-3 " id ="toc-entry-9 "> 16.0.1.0.3 (2023-10-17)</ a > </ li >
450- < li > < a class ="reference internal " href ="#section-4 " id ="toc-entry-10 "> 16.0.1.0.2 (2023-10-09)</ a > </ li >
444+ < li > < a class ="reference internal " href ="#known-issues-roadmap " id ="toc-entry-4 "> Known issues / Roadmap</ a > </ li >
445+ < li > < a class ="reference internal " href ="#changelog " id ="toc-entry-5 "> Changelog</ a > < ul >
446+ < li > < a class ="reference internal " href ="#section-1 " id ="toc-entry-6 "> 16.0.1.2.0 (2024-02-06)</ a > </ li >
447+ < li > < a class ="reference internal " href ="#section-2 " id ="toc-entry-7 "> 16.0.1.1.0 (2023-12-22)</ a > </ li >
448+ < li > < a class ="reference internal " href ="#section-3 " id ="toc-entry-8 "> 16.0.1.0.3 (2023-10-17)</ a > </ li >
449+ < li > < a class ="reference internal " href ="#section-4 " id ="toc-entry-9 "> 16.0.1.0.2 (2023-10-09)</ a > </ li >
451450</ ul >
452451</ li >
453- < li > < a class ="reference internal " href ="#bug-tracker " id ="toc-entry-11 "> Bug Tracker</ a > </ li >
454- < li > < a class ="reference internal " href ="#credits " id ="toc-entry-12 "> Credits</ a > < ul >
455- < li > < a class ="reference internal " href ="#authors " id ="toc-entry-13 "> Authors</ a > </ li >
456- < li > < a class ="reference internal " href ="#contributors " id ="toc-entry-14 "> Contributors</ a > </ li >
457- < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-15 "> Maintainers</ a > </ li >
452+ < li > < a class ="reference internal " href ="#bug-tracker " id ="toc-entry-10 "> Bug Tracker</ a > </ li >
453+ < li > < a class ="reference internal " href ="#credits " id ="toc-entry-11 "> Credits</ a > < ul >
454+ < li > < a class ="reference internal " href ="#authors " id ="toc-entry-12 "> Authors</ a > </ li >
455+ < li > < a class ="reference internal " href ="#contributors " id ="toc-entry-13 "> Contributors</ a > </ li >
456+ < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-14 "> Maintainers</ a > </ li >
458457</ ul >
459458</ li >
460459</ ul >
@@ -477,8 +476,6 @@ <h3><a class="toc-backref" href="#toc-entry-2">Configuration</a></h3>
477476< li > The protocol options. These are the options that will be passed to the
478477fsspec python package when creating the filesystem. These options depend
479478on the protocol used and are described in the fsspec documentation.</ li >
480- < li > Resolve env vars. This options resolves the protocol options values starting
481- with $ from environment variables</ li >
482479< li > Check Connection Method. If set, Odoo will always check the connection before using
483480a storage and it will remove the fs connection from the cache if the check fails.< ul >
484481< li > < tt class ="docutils literal "> Create Marker file</ tt > : create a hidden file on remote and then check it exists with
@@ -507,29 +504,8 @@ <h3><a class="toc-backref" href="#toc-entry-2">Configuration</a></h3>
507504< p > In this example, the SimpleCacheFileSystem protocol will be used as a wrapper
508505around the odoofs protocol.</ p >
509506</ div >
510- < div class ="section " id ="server-environment ">
511- < h3 > < a class ="toc-backref " href ="#toc-entry-3 "> Server Environment</ a > </ h3 >
512- < p > To ease the management of the filesystem storages configuration accross the different
513- environments, the configuration of the filesystem storages can be defined in
514- environment files or directly in the main configuration file. For example, the
515- configuration of a filesystem storage with the code < cite > fsprod</ cite > can be provided in the
516- main configuration file as follows:</ p >
517- < pre class ="code ini literal-block ">
518- < span class ="k "> [fs_storage.fsprod]</ span > < span class ="w ">
519- </ span > < span class ="na "> protocol</ span > < span class ="o "> =</ span > < span class ="s "> s3</ span > < span class ="w ">
520- </ span > < span class ="na "> options={"endpoint_url"</ span > < span class ="o "> :</ span > < span class ="w "> </ span > < span class ="s "> "https://my_s3_server/"</ span > < span class ="na "> , "key"</ span > < span class ="o "> :</ span > < span class ="w "> </ span > < span class ="s "> "KEY"</ span > < span class ="na "> , "secret"</ span > < span class ="o "> :</ span > < span class ="w "> </ span > < span class ="s "> "SECRET"</ span > < span class ="na "> }</ span > < span class ="w ">
521- </ span > < span class ="na "> directory_path</ span > < span class ="o "> =</ span > < span class ="s "> my_bucket</ span >
522- </ pre >
523- < p > To work, a < cite > storage.backend</ cite > record must exist with the code < cite > fsprod</ cite > into the database.
524- In your configuration section, you can specify the value for the following fields:</ p >
525- < ul class ="simple ">
526- < li > < cite > protocol</ cite > </ li >
527- < li > < cite > options</ cite > </ li >
528- < li > < cite > directory_path</ cite > </ li >
529- </ ul >
530- </ div >
531507< div class ="section " id ="migration-from-storage-backend ">
532- < h3 > < a class ="toc-backref " href ="#toc-entry-4 "> Migration from storage_backend</ a > </ h3 >
508+ < h3 > < a class ="toc-backref " href ="#toc-entry-3 "> Migration from storage_backend</ a > </ h3 >
533509< p > The fs_storage addon can be used to replace the storage_backend addon. (It has
534510been designed to be a drop-in replacement for the storage_backend addon). To
535511ease the migration, the < cite > fs.storage</ cite > model defines the high-level methods
@@ -552,7 +528,7 @@ <h3><a class="toc-backref" href="#toc-entry-4">Migration from storage_backend</a
552528</ div >
553529</ div >
554530< div class ="section " id ="known-issues-roadmap ">
555- < h2 > < a class ="toc-backref " href ="#toc-entry-5 "> Known issues / Roadmap</ a > </ h2 >
531+ < h2 > < a class ="toc-backref " href ="#toc-entry-4 "> Known issues / Roadmap</ a > </ h2 >
556532< ul class ="simple ">
557533< li > Transactions: fsspec comes with a transactional mechanism that once started,
558534gathers all the files created during the transaction, and if the transaction
@@ -566,30 +542,30 @@ <h2><a class="toc-backref" href="#toc-entry-5">Known issues / Roadmap</a></h2>
566542</ ul >
567543</ div >
568544< div class ="section " id ="changelog ">
569- < h2 > < a class ="toc-backref " href ="#toc-entry-6 "> Changelog</ a > </ h2 >
545+ < h2 > < a class ="toc-backref " href ="#toc-entry-5 "> Changelog</ a > </ h2 >
570546< div class ="section " id ="section-1 ">
571- < h3 > < a class ="toc-backref " href ="#toc-entry-7 "> 16.0.1.2.0 (2024-02-06)</ a > </ h3 >
547+ < h3 > < a class ="toc-backref " href ="#toc-entry-6 "> 16.0.1.2.0 (2024-02-06)</ a > </ h3 >
572548< p > < strong > Features</ strong > </ p >
573549< ul class ="simple ">
574550< li > Invalidate FS filesystem object cache when the connection fails, forcing a reconnection. (< a class ="reference external " href ="https://github.com/OCA/storage/issues/320 "> #320</ a > )</ li >
575551</ ul >
576552</ div >
577553< div class ="section " id ="section-2 ">
578- < h3 > < a class ="toc-backref " href ="#toc-entry-8 "> 16.0.1.1.0 (2023-12-22)</ a > </ h3 >
554+ < h3 > < a class ="toc-backref " href ="#toc-entry-7 "> 16.0.1.1.0 (2023-12-22)</ a > </ h3 >
579555< p > < strong > Features</ strong > </ p >
580556< ul class ="simple ">
581557< li > Add parameter on storage backend to resolve protocol options values starting with $ from environment variables (< a class ="reference external " href ="https://github.com/OCA/storage/issues/303 "> #303</ a > )</ li >
582558</ ul >
583559</ div >
584560< div class ="section " id ="section-3 ">
585- < h3 > < a class ="toc-backref " href ="#toc-entry-9 "> 16.0.1.0.3 (2023-10-17)</ a > </ h3 >
561+ < h3 > < a class ="toc-backref " href ="#toc-entry-8 "> 16.0.1.0.3 (2023-10-17)</ a > </ h3 >
586562< p > < strong > Bugfixes</ strong > </ p >
587563< ul class ="simple ">
588564< li > Fix access to technical models to be able to upload attachments for users with basic access (< a class ="reference external " href ="https://github.com/OCA/storage/issues/289 "> #289</ a > )</ li >
589565</ ul >
590566</ div >
591567< div class ="section " id ="section-4 ">
592- < h3 > < a class ="toc-backref " href ="#toc-entry-10 "> 16.0.1.0.2 (2023-10-09)</ a > </ h3 >
568+ < h3 > < a class ="toc-backref " href ="#toc-entry-9 "> 16.0.1.0.2 (2023-10-09)</ a > </ h3 >
593569< p > < strong > Bugfixes</ strong > </ p >
594570< ul class ="simple ">
595571< li > Avoid config error when using the webdav protocol. The auth option is expected
@@ -600,30 +576,30 @@ <h3><a class="toc-backref" href="#toc-entry-10">16.0.1.0.2 (2023-10-09)</a></h3>
600576</ div >
601577</ div >
602578< div class ="section " id ="bug-tracker ">
603- < h2 > < a class ="toc-backref " href ="#toc-entry-11 "> Bug Tracker</ a > </ h2 >
579+ < h2 > < a class ="toc-backref " href ="#toc-entry-10 "> Bug Tracker</ a > </ h2 >
604580< p > Bugs are tracked on < a class ="reference external " href ="https://github.com/OCA/storage/issues "> GitHub Issues</ a > .
605581In case of trouble, please check there if your issue has already been reported.
606582If you spotted it first, help us to smash it by providing a detailed and welcomed
607583< a class ="reference external " href ="https://github.com/OCA/storage/issues/new?body=module:%20fs_storage%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** "> feedback</ a > .</ p >
608584< p > Do not contact contributors directly about support or help with technical issues.</ p >
609585</ div >
610586< div class ="section " id ="credits ">
611- < h2 > < a class ="toc-backref " href ="#toc-entry-12 "> Credits</ a > </ h2 >
587+ < h2 > < a class ="toc-backref " href ="#toc-entry-11 "> Credits</ a > </ h2 >
612588< div class ="section " id ="authors ">
613- < h3 > < a class ="toc-backref " href ="#toc-entry-13 "> Authors</ a > </ h3 >
589+ < h3 > < a class ="toc-backref " href ="#toc-entry-12 "> Authors</ a > </ h3 >
614590< ul class ="simple ">
615591< li > ACSONE SA/NV</ li >
616592</ ul >
617593</ div >
618594< div class ="section " id ="contributors ">
619- < h3 > < a class ="toc-backref " href ="#toc-entry-14 "> Contributors</ a > </ h3 >
595+ < h3 > < a class ="toc-backref " href ="#toc-entry-13 "> Contributors</ a > </ h3 >
620596< ul class ="simple ">
621597< li > Laurent Mignon << a class ="reference external " href ="mailto:laurent.mignon@acsone.eu "> laurent.mignon@acsone.eu</ a > ></ li >
622598< li > Sébastien BEAU << a class ="reference external " href ="mailto:sebastien.beau@akretion.com "> sebastien.beau@akretion.com</ a > ></ li >
623599</ ul >
624600</ div >
625601< div class ="section " id ="maintainers ">
626- < h3 > < a class ="toc-backref " href ="#toc-entry-15 "> Maintainers</ a > </ h3 >
602+ < h3 > < a class ="toc-backref " href ="#toc-entry-14 "> Maintainers</ a > </ h3 >
627603< p > This module is maintained by the OCA.</ p >
628604< a class ="reference external image-reference " href ="https://odoo-community.org ">
629605< img alt ="Odoo Community Association " src ="https://odoo-community.org/logo.png " />
0 commit comments