Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[fs_attachment](fs_attachment/) | 18.0.2.2.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Store attachments on external object store
[fs_attachment](fs_attachment/) | 18.0.2.2.1 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Store attachments on external object store
[fs_attachment_s3](fs_attachment_s3/) | 18.0.1.2.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Store attachments into S3 complient filesystem
[fs_file](fs_file/) | 18.0.1.0.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Field to store files into filesystem storages
[fs_folder](fs_folder/) | 18.0.2.0.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | A module to link to Odoo records and manage from record forms forlders from external file systems
Expand Down
2 changes: 1 addition & 1 deletion fs_attachment/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Base Attachment Object Store
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:50c6082aeb8a70f8037fe7af4499b73d24c5e70f2fb76df63606559a6700108d
!! source digest: sha256:ae07154d0c96f19cbe1f6760cb690b0eefdea57af89985620fac1eef5d52f5fb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion fs_attachment/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Base Attachment Object Store",
"summary": "Store attachments on external object store",
"version": "18.0.2.2.0",
"version": "18.0.2.2.1",
"author": "Camptocamp, ACSONE SA/NV, Odoo Community Association (OCA)",
"license": "AGPL-3",
"development_status": "Beta",
Expand Down
8 changes: 8 additions & 0 deletions fs_attachment/models/ir_binary.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from mimetypes import guess_extension

import werkzeug.http

from odoo import models
from odoo.http import request
from odoo.tools.image import image_process
from odoo.tools.mimetypes import get_extension

from ..fs_stream import FsStream

Expand Down Expand Up @@ -73,6 +75,12 @@ def _get_stream_from(
elif record and filename_field in record:
stream.download_name = record[filename_field] or stream.download_name

if (
not get_extension(stream.download_name)
and stream.mimetype != "application/octet-stream"
):
stream.download_name += guess_extension(stream.mimetype) or ""

return stream

def _get_image_stream_from(
Expand Down
2 changes: 1 addition & 1 deletion fs_attachment/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Base Attachment Object Store</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:50c6082aeb8a70f8037fe7af4499b73d24c5e70f2fb76df63606559a6700108d
!! source digest: sha256:ae07154d0c96f19cbe1f6760cb690b0eefdea57af89985620fac1eef5d52f5fb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/storage/tree/18.0/fs_attachment"><img alt="OCA/storage" src="https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-fs_attachment"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/storage&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>In some cases, you need to store attachment in another system that the
Expand Down
6 changes: 6 additions & 0 deletions fs_folder/i18n/fs_folder.pot
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,9 @@ msgstr ""
#: code:addons/fs_folder/static/src/fs_folder/fs_folder.esm.js:0
msgid "User"
msgstr ""

#. module: fs_folder
#. odoo-javascript
#: code:addons/fs_folder/static/src/preview_iframe/preview_iframe.xml:0
msgid "X"
msgstr ""
10 changes: 8 additions & 2 deletions fs_folder/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-10-21 08:43+0000\n"
"PO-Revision-Date: 2026-04-13 11:45+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"
"X-Generator: Weblate 5.15.2\n"

#. module: fs_folder
#: model:ir.model,name:fs_folder.model_fs_folder_field_web_api
Expand Down Expand Up @@ -345,3 +345,9 @@ msgstr "Utilizzare come predefinito per i contenuti del file system"
#: code:addons/fs_folder/static/src/fs_folder/fs_folder.esm.js:0
msgid "User"
msgstr "Utente"

#. module: fs_folder
#. odoo-javascript
#: code:addons/fs_folder/static/src/preview_iframe/preview_iframe.xml:0
msgid "X"
msgstr "X"
6 changes: 6 additions & 0 deletions fs_folder_ms_drive/i18n/fs_folder_ms_drive.pot
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ msgstr ""
#: code:addons/fs_folder_ms_drive/static/src/fs_folder_ms_drive/fs_folder.esm.js:0
msgid "Modified By"
msgstr ""

#. module: fs_folder_ms_drive
#. odoo-javascript
#: code:addons/fs_folder_ms_drive/static/src/components/preview_iframe.xml:0
msgid "X"
msgstr ""
10 changes: 8 additions & 2 deletions fs_folder_ms_drive/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-09-15 09:42+0000\n"
"PO-Revision-Date: 2026-04-13 11:45+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"
"X-Generator: Weblate 5.15.2\n"

#. module: fs_folder_ms_drive
#: model:ir.model,name:fs_folder_ms_drive.model_fs_folder_field_web_api
Expand Down Expand Up @@ -43,3 +43,9 @@ msgstr "Adattatore valore campo cartella"
#: code:addons/fs_folder_ms_drive/static/src/fs_folder_ms_drive/fs_folder.esm.js:0
msgid "Modified By"
msgstr "Modificato da"

#. module: fs_folder_ms_drive
#. odoo-javascript
#: code:addons/fs_folder_ms_drive/static/src/components/preview_iframe.xml:0
msgid "X"
msgstr "X"
Loading