From 4d82d00aaec818c10dfcfe509d9640d48ebffbf2 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 23 Feb 2024 07:54:15 +0000 Subject: [PATCH] [BOT] post-merge updates --- README.md | 4 +- fs_file/README.rst | 16 ++++++- fs_file/__manifest__.py | 2 +- fs_file/readme/HISTORY.rst | 14 ++++++ fs_file/readme/newsfragments/341.bugfix | 7 --- fs_file/static/description/index.html | 59 +++++++++++++++--------- fs_image/README.rst | 10 +++- fs_image/__manifest__.py | 2 +- fs_image/readme/HISTORY.rst | 8 ++++ fs_image/readme/newsfragments/305.bugfix | 0 fs_image/static/description/index.html | 41 +++++++++------- 11 files changed, 110 insertions(+), 53 deletions(-) delete mode 100644 fs_file/readme/newsfragments/341.bugfix delete mode 100644 fs_image/readme/newsfragments/305.bugfix diff --git a/README.md b/README.md index dc1d58dffb..ac88249878 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ addon | version | maintainers | summary [fs_attachment](fs_attachment/) | 16.0.1.0.9 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Store attachments on external object store [fs_base_multi_image](fs_base_multi_image/) | 16.0.1.1.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Mulitple Images from External File System [fs_base_multi_media](fs_base_multi_media/) | 16.0.1.0.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Give the possibility to store media data in external filesystem from odoo -[fs_file](fs_file/) | 16.0.1.0.5 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Field to store files into filesystem storages +[fs_file](fs_file/) | 16.0.1.0.6 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Field to store files into filesystem storages [fs_file_demo](fs_file_demo/) | 16.0.1.0.0 | | Demo addon for fs_file and fs_image -[fs_image](fs_image/) | 16.0.1.0.2 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Field to store images into filesystem storages +[fs_image](fs_image/) | 16.0.1.0.3 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Field to store images into filesystem storages [fs_image_thumbnail](fs_image_thumbnail/) | 16.0.1.0.2 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Generate and store thumbnail for images [fs_product_brand_multi_image](fs_product_brand_multi_image/) | 16.0.1.0.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Link images to product brands [fs_product_multi_image](fs_product_multi_image/) | 16.0.1.1.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Manage multi images from extenal file system on product diff --git a/fs_file/README.rst b/fs_file/README.rst index a6d36aa9cf..5dfe7d45f9 100644 --- a/fs_file/README.rst +++ b/fs_file/README.rst @@ -7,7 +7,7 @@ Fs File !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ba969b14fbeee8a8a16e0297d2468467a7140cb7a51b84281269f8ee5137ae2b + !! source digest: sha256:cec7431f1becb99516793e51833fe9606ccd7459d148d15df61b03c14de1f6e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png @@ -150,6 +150,20 @@ Concretely, this design allows you to write code like this: Changelog ========= +16.0.1.0.6 (2024-02-23) +~~~~~~~~~~~~~~~~~~~~~~~ + +**Bugfixes** + +- Fixes the creation of empty files. + + Before this change, the creation of empty files resulted in a constraint + violation error. This was due to the fact that even if a name was given + to the file it was not preserved into the FSFileValue object if no content + was given. As result, when the corresponding ir.attachment was created in + the database, the name was not set and the 'required' constraint was violated. (`#341 `_) + + 16.0.1.0.5 (2023-11-30) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/fs_file/__manifest__.py b/fs_file/__manifest__.py index e212e4f12e..520ca6e10c 100644 --- a/fs_file/__manifest__.py +++ b/fs_file/__manifest__.py @@ -5,7 +5,7 @@ "name": "Fs File", "summary": """ Field to store files into filesystem storages""", - "version": "16.0.1.0.5", + "version": "16.0.1.0.6", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/storage", diff --git a/fs_file/readme/HISTORY.rst b/fs_file/readme/HISTORY.rst index e6c9de1981..db41172c8d 100644 --- a/fs_file/readme/HISTORY.rst +++ b/fs_file/readme/HISTORY.rst @@ -1,3 +1,17 @@ +16.0.1.0.6 (2024-02-23) +~~~~~~~~~~~~~~~~~~~~~~~ + +**Bugfixes** + +- Fixes the creation of empty files. + + Before this change, the creation of empty files resulted in a constraint + violation error. This was due to the fact that even if a name was given + to the file it was not preserved into the FSFileValue object if no content + was given. As result, when the corresponding ir.attachment was created in + the database, the name was not set and the 'required' constraint was violated. (`#341 `_) + + 16.0.1.0.5 (2023-11-30) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/fs_file/readme/newsfragments/341.bugfix b/fs_file/readme/newsfragments/341.bugfix deleted file mode 100644 index 2ad6b8d9ca..0000000000 --- a/fs_file/readme/newsfragments/341.bugfix +++ /dev/null @@ -1,7 +0,0 @@ -Fixes the creation of empty files. - -Before this change, the creation of empty files resulted in a constraint -violation error. This was due to the fact that even if a name was given -to the file it was not preserved into the FSFileValue object if no content -was given. As result, when the corresponding ir.attachment was created in -the database, the name was not set and the 'required' constraint was violated. diff --git a/fs_file/static/description/index.html b/fs_file/static/description/index.html index 368fefec81..8255234e77 100644 --- a/fs_file/static/description/index.html +++ b/fs_file/static/description/index.html @@ -1,4 +1,3 @@ - @@ -367,7 +366,7 @@

Fs File

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:ba969b14fbeee8a8a16e0297d2468467a7140cb7a51b84281269f8ee5137ae2b +!! source digest: sha256:cec7431f1becb99516793e51833fe9606ccd7459d148d15df61b03c14de1f6e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Alpha License: AGPL-3 OCA/storage Translate me on Weblate Try me on Runboat

This addon defines a new field type FSFile which is a file field that stores @@ -385,17 +384,18 @@

Fs File