odoo-addon-fs-attachment-s3 17.0.1.1.0__py3-none-any.whl → 17.0.1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of odoo-addon-fs-attachment-s3 might be problematic. Click here for more details.
- odoo/addons/fs_attachment_s3/README.rst +13 -1
- odoo/addons/fs_attachment_s3/__manifest__.py +1 -1
- odoo/addons/fs_attachment_s3/i18n/it.po +49 -0
- odoo/addons/fs_attachment_s3/models/ir_attachment.py +2 -1
- odoo/addons/fs_attachment_s3/readme/HISTORY.md +5 -0
- odoo/addons/fs_attachment_s3/static/description/index.html +33 -13
- {odoo_addon_fs_attachment_s3-17.0.1.1.0.dist-info → odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info}/METADATA +14 -2
- {odoo_addon_fs_attachment_s3-17.0.1.1.0.dist-info → odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info}/RECORD +10 -8
- {odoo_addon_fs_attachment_s3-17.0.1.1.0.dist-info → odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info}/WHEEL +0 -0
- {odoo_addon_fs_attachment_s3-17.0.1.1.0.dist-info → odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ Fs Attachment S3
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:57a067d105c10ab10e37d943357bf9f6bc3c02a5a5bfd77737fd95c2c5b0ffa6
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -120,6 +120,18 @@ the storage configuration. The X-Accel-Redirect path is constructed
|
|
|
120
120
|
directly from the S3 storage's URL defined for the connection, the
|
|
121
121
|
directory name as bucket name, and the file path.
|
|
122
122
|
|
|
123
|
+
Changelog
|
|
124
|
+
=========
|
|
125
|
+
|
|
126
|
+
17.0.1.2.0 (2025-10-22)
|
|
127
|
+
-----------------------
|
|
128
|
+
|
|
129
|
+
Features
|
|
130
|
+
~~~~~~~~
|
|
131
|
+
|
|
132
|
+
- Adapt to handle {db_name} in directory_path.
|
|
133
|
+
(`#db_name <https://github.com/OCA/storage/issues/db_name>`__)
|
|
134
|
+
|
|
123
135
|
Bug Tracker
|
|
124
136
|
===========
|
|
125
137
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"name": "Fs Attachment S3",
|
|
6
6
|
"summary": """Store attachments into S3 complient filesystem""",
|
|
7
|
-
"version": "17.0.1.
|
|
7
|
+
"version": "17.0.1.2.0",
|
|
8
8
|
"license": "AGPL-3",
|
|
9
9
|
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
|
|
10
10
|
"website": "https://github.com/OCA/storage",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Translation of Odoo Server.
|
|
2
|
+
# This file contains the translation of the following modules:
|
|
3
|
+
# * fs_attachment_s3
|
|
4
|
+
#
|
|
5
|
+
msgid ""
|
|
6
|
+
msgstr ""
|
|
7
|
+
"Project-Id-Version: Odoo Server 17.0\n"
|
|
8
|
+
"Report-Msgid-Bugs-To: \n"
|
|
9
|
+
"Last-Translator: Automatically generated\n"
|
|
10
|
+
"Language-Team: none\n"
|
|
11
|
+
"Language: it\n"
|
|
12
|
+
"MIME-Version: 1.0\n"
|
|
13
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
14
|
+
"Content-Transfer-Encoding: \n"
|
|
15
|
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
16
|
+
|
|
17
|
+
#. module: fs_attachment_s3
|
|
18
|
+
#: model:ir.model,name:fs_attachment_s3.model_ir_attachment
|
|
19
|
+
msgid "Attachment"
|
|
20
|
+
msgstr ""
|
|
21
|
+
|
|
22
|
+
#. module: fs_attachment_s3
|
|
23
|
+
#: model:ir.model,name:fs_attachment_s3.model_fs_storage
|
|
24
|
+
msgid "FS Storage"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
#. module: fs_attachment_s3
|
|
28
|
+
#: model:ir.model.fields,help:fs_attachment_s3.field_fs_storage__s3_uses_signed_url_for_x_sendfile
|
|
29
|
+
msgid ""
|
|
30
|
+
"If checked, the storage will use signed URLs for attachments when using "
|
|
31
|
+
"X-Accel-Redirect. This is useful for S3 storage where the file path is not "
|
|
32
|
+
"directly accessible without authentication."
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
35
|
+
#. module: fs_attachment_s3
|
|
36
|
+
#: model:ir.model.fields,field_description:fs_attachment_s3.field_fs_storage__s3_signed_url_expiration
|
|
37
|
+
msgid "Signed URL Expiration (seconds)"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
40
|
+
#. module: fs_attachment_s3
|
|
41
|
+
#: model:ir.model.fields,help:fs_attachment_s3.field_fs_storage__s3_signed_url_expiration
|
|
42
|
+
msgid ""
|
|
43
|
+
"The expiration time for the signed URL in seconds. Default is 30 seconds."
|
|
44
|
+
msgstr ""
|
|
45
|
+
|
|
46
|
+
#. module: fs_attachment_s3
|
|
47
|
+
#: model:ir.model.fields,field_description:fs_attachment_s3.field_fs_storage__s3_uses_signed_url_for_x_sendfile
|
|
48
|
+
msgid "Use signed URL for X-Accel-Redirect"
|
|
49
|
+
msgstr ""
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Copyright 2025 ACSONE SA/NV
|
|
2
|
+
# Copyright 2025 XCG SAS
|
|
2
3
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
4
|
from urllib.parse import urlparse
|
|
4
5
|
|
|
@@ -58,7 +59,7 @@ class IrAttachment(models.Model):
|
|
|
58
59
|
storage = self.env["fs.storage"].sudo().get_by_code(storage_code)
|
|
59
60
|
root_fs = storage._get_root_filesystem(fs)
|
|
60
61
|
s3_client = root_fs.s3
|
|
61
|
-
bucket_name = storage.
|
|
62
|
+
bucket_name = storage.get_directory_path().strip("/").rstrip("/")
|
|
62
63
|
if storage.s3_uses_signed_url_for_x_sendfile:
|
|
63
64
|
file_url = storage._s3_call_generate_presigned_url(
|
|
64
65
|
s3_client,
|
|
@@ -372,7 +372,7 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:57a067d105c10ab10e37d943357bf9f6bc3c02a5a5bfd77737fd95c2c5b0ffa6
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
377
|
<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/17.0/fs_attachment_s3"><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-17-0/storage-17-0-fs_attachment_s3"><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&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
378
|
<p>This module extends the functionality of
|
|
@@ -389,12 +389,19 @@ X-Accel-Redirect without exposing the files publicly.)</li>
|
|
|
389
389
|
<div class="contents local topic" id="contents">
|
|
390
390
|
<ul class="simple">
|
|
391
391
|
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a></li>
|
|
392
|
-
<li><a class="reference internal" href="#
|
|
393
|
-
<li><a class="reference internal" href="#
|
|
394
|
-
<li><a class="reference internal" href="#
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
392
|
+
<li><a class="reference internal" href="#changelog" id="toc-entry-2">Changelog</a><ul>
|
|
393
|
+
<li><a class="reference internal" href="#section-1" id="toc-entry-3">17.0.1.2.0 (2025-10-22)</a><ul>
|
|
394
|
+
<li><a class="reference internal" href="#features" id="toc-entry-4">Features</a></li>
|
|
395
|
+
</ul>
|
|
396
|
+
</li>
|
|
397
|
+
</ul>
|
|
398
|
+
</li>
|
|
399
|
+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-5">Bug Tracker</a></li>
|
|
400
|
+
<li><a class="reference internal" href="#credits" id="toc-entry-6">Credits</a><ul>
|
|
401
|
+
<li><a class="reference internal" href="#authors" id="toc-entry-7">Authors</a></li>
|
|
402
|
+
<li><a class="reference internal" href="#contributors" id="toc-entry-8">Contributors</a></li>
|
|
403
|
+
<li><a class="reference internal" href="#other-credits" id="toc-entry-9">Other credits</a></li>
|
|
404
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-10">Maintainers</a></li>
|
|
398
405
|
</ul>
|
|
399
406
|
</li>
|
|
400
407
|
</ul>
|
|
@@ -464,8 +471,21 @@ the storage configuration. The X-Accel-Redirect path is constructed
|
|
|
464
471
|
directly from the S3 storage’s URL defined for the connection, the
|
|
465
472
|
directory name as bucket name, and the file path.</p>
|
|
466
473
|
</div>
|
|
474
|
+
<div class="section" id="changelog">
|
|
475
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Changelog</a></h2>
|
|
476
|
+
<div class="section" id="section-1">
|
|
477
|
+
<h3><a class="toc-backref" href="#toc-entry-3">17.0.1.2.0 (2025-10-22)</a></h3>
|
|
478
|
+
<div class="section" id="features">
|
|
479
|
+
<h4><a class="toc-backref" href="#toc-entry-4">Features</a></h4>
|
|
480
|
+
<ul class="simple">
|
|
481
|
+
<li>Adapt to handle {db_name} in directory_path.
|
|
482
|
+
(<a class="reference external" href="https://github.com/OCA/storage/issues/db_name">#db_name</a>)</li>
|
|
483
|
+
</ul>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
</div>
|
|
467
487
|
<div class="section" id="bug-tracker">
|
|
468
|
-
<h2><a class="toc-backref" href="#toc-entry-
|
|
488
|
+
<h2><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h2>
|
|
469
489
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/storage/issues">GitHub Issues</a>.
|
|
470
490
|
In case of trouble, please check there if your issue has already been reported.
|
|
471
491
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
@@ -473,22 +493,22 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
473
493
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
474
494
|
</div>
|
|
475
495
|
<div class="section" id="credits">
|
|
476
|
-
<h2><a class="toc-backref" href="#toc-entry-
|
|
496
|
+
<h2><a class="toc-backref" href="#toc-entry-6">Credits</a></h2>
|
|
477
497
|
<div class="section" id="authors">
|
|
478
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
498
|
+
<h3><a class="toc-backref" href="#toc-entry-7">Authors</a></h3>
|
|
479
499
|
<ul class="simple">
|
|
480
500
|
<li>ACSONE SA/NV</li>
|
|
481
501
|
</ul>
|
|
482
502
|
</div>
|
|
483
503
|
<div class="section" id="contributors">
|
|
484
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
504
|
+
<h3><a class="toc-backref" href="#toc-entry-8">Contributors</a></h3>
|
|
485
505
|
<ul class="simple">
|
|
486
506
|
<li>Laurent Mignon <a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a> (<a class="reference external" href="https://www.acsone.eu">https://www.acsone.eu</a>)</li>
|
|
487
507
|
<li>Stéphane Bidoul <a class="reference external" href="mailto:stephane.bidoul@acsone.eu">stephane.bidoul@acsone.eu</a> (<a class="reference external" href="https://www.acsone.eu">https://www.acsone.eu</a>)</li>
|
|
488
508
|
</ul>
|
|
489
509
|
</div>
|
|
490
510
|
<div class="section" id="other-credits">
|
|
491
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
511
|
+
<h3><a class="toc-backref" href="#toc-entry-9">Other credits</a></h3>
|
|
492
512
|
<p>The development of this module has been financially supported by:</p>
|
|
493
513
|
<ul class="simple">
|
|
494
514
|
<li>ACSONE SA/NV (<a class="reference external" href="https://www.acsone.eu">https://www.acsone.eu</a>)</li>
|
|
@@ -496,7 +516,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
496
516
|
</ul>
|
|
497
517
|
</div>
|
|
498
518
|
<div class="section" id="maintainers">
|
|
499
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
519
|
+
<h3><a class="toc-backref" href="#toc-entry-10">Maintainers</a></h3>
|
|
500
520
|
<p>This module is maintained by the OCA.</p>
|
|
501
521
|
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
502
522
|
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-fs_attachment_s3
|
|
3
|
-
Version: 17.0.1.
|
|
3
|
+
Version: 17.0.1.2.0
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: fsspec[s3]
|
|
6
6
|
Requires-Dist: odoo-addon-fs_attachment>=17.0dev,<17.1dev
|
|
@@ -29,7 +29,7 @@ Fs Attachment S3
|
|
|
29
29
|
!! This file is generated by oca-gen-addon-readme !!
|
|
30
30
|
!! changes will be overwritten. !!
|
|
31
31
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
-
!! source digest: sha256:
|
|
32
|
+
!! source digest: sha256:57a067d105c10ab10e37d943357bf9f6bc3c02a5a5bfd77737fd95c2c5b0ffa6
|
|
33
33
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
34
34
|
|
|
35
35
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -138,6 +138,18 @@ the storage configuration. The X-Accel-Redirect path is constructed
|
|
|
138
138
|
directly from the S3 storage's URL defined for the connection, the
|
|
139
139
|
directory name as bucket name, and the file path.
|
|
140
140
|
|
|
141
|
+
Changelog
|
|
142
|
+
=========
|
|
143
|
+
|
|
144
|
+
17.0.1.2.0 (2025-10-22)
|
|
145
|
+
-----------------------
|
|
146
|
+
|
|
147
|
+
Features
|
|
148
|
+
~~~~~~~~
|
|
149
|
+
|
|
150
|
+
- Adapt to handle {db_name} in directory_path.
|
|
151
|
+
(`#db_name <https://github.com/OCA/storage/issues/db_name>`__)
|
|
152
|
+
|
|
141
153
|
Bug Tracker
|
|
142
154
|
===========
|
|
143
155
|
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
odoo/addons/fs_attachment_s3/README.rst,sha256=
|
|
1
|
+
odoo/addons/fs_attachment_s3/README.rst,sha256=nSImAdjViUoJvDRlE-Evr91VI3sBlOtyU7HYsCUyFQg,6681
|
|
2
2
|
odoo/addons/fs_attachment_s3/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
|
3
|
-
odoo/addons/fs_attachment_s3/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/fs_attachment_s3/__manifest__.py,sha256=VXOq-auha0P6FqCjkaOsQhm-09Bx0dOLP9shbYfaSSY,581
|
|
4
4
|
odoo/addons/fs_attachment_s3/i18n/fs_attachment_s3.pot,sha256=UX7IG6Du2ppG4zQDNSlrm0c_fu_vpEofH52-Vq91koE,1533
|
|
5
|
+
odoo/addons/fs_attachment_s3/i18n/it.po,sha256=USCdgk9XDFFnf5QhgmkSJ-y8L3HQFujVlbweanP-ZpY,1603
|
|
5
6
|
odoo/addons/fs_attachment_s3/models/__init__.py,sha256=OfsH8Tt9nIIDh-KNTuBXialP2Iye4PVsw-A4U6VDjbY,53
|
|
6
7
|
odoo/addons/fs_attachment_s3/models/fs_storage.py,sha256=dg3Fd4NvdROMXEd2QC-xorbV9QM343CudV32rOAASqw,1787
|
|
7
|
-
odoo/addons/fs_attachment_s3/models/ir_attachment.py,sha256=
|
|
8
|
+
odoo/addons/fs_attachment_s3/models/ir_attachment.py,sha256=O9wfBeaZwon8qLxQdrrCFR9OBl1Erexr_0UDxDxEGPw,3098
|
|
8
9
|
odoo/addons/fs_attachment_s3/readme/CONFIGURE.md,sha256=pls7cefEsr7Yba8cVfWmkmFrItekwLE6V96xOzeGHkc,2561
|
|
9
10
|
odoo/addons/fs_attachment_s3/readme/CONTRIBUTORS.md,sha256=fQuQzGS-9tjXz4TtzBPthvIRrbIkYAm5fbg2-GjV564,139
|
|
10
11
|
odoo/addons/fs_attachment_s3/readme/CREDITS.md,sha256=dujpMmbuCxwnGltLAYjv5u6WQdx37lgYBZeFeDgrfnM,120
|
|
11
12
|
odoo/addons/fs_attachment_s3/readme/DESCRIPTION.md,sha256=kwIIKDmup9ylYA61ZylWdQkyYFlyyouamz3Ljy1G-cQ,480
|
|
13
|
+
odoo/addons/fs_attachment_s3/readme/HISTORY.md,sha256=u2a5QQkDB9buGfhCnlSu6yeF00Vx-OnBaRvjCC0JXyM,149
|
|
12
14
|
odoo/addons/fs_attachment_s3/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
13
|
-
odoo/addons/fs_attachment_s3/static/description/index.html,sha256=
|
|
15
|
+
odoo/addons/fs_attachment_s3/static/description/index.html,sha256=rYfnYHJU_65nWb0T8D7FYmPPP9VoZTICPfu5aqekFX8,19147
|
|
14
16
|
odoo/addons/fs_attachment_s3/tests/__init__.py,sha256=fymN9brOYmhFYo0dk9PioEoyET4n-uxIjC4RoBVSnEY,36
|
|
15
17
|
odoo/addons/fs_attachment_s3/tests/common.py,sha256=5vEQ9L1GDpUZ4olWKTUm-jjfhRJWEX6LLTMLniEhQAg,2375
|
|
16
18
|
odoo/addons/fs_attachment_s3/tests/test_fs_attachment_s3.py,sha256=SjQplCdv383BoNLWEPBm6sl_raDXGSQOCM9Yfvso8_c,1268
|
|
17
19
|
odoo/addons/fs_attachment_s3/views/fs_storage.xml,sha256=5Avh7PtEQS11yt-q7YaLeWtGbs5PVf_TP-A2pkIDJJY,899
|
|
18
|
-
odoo_addon_fs_attachment_s3-17.0.1.
|
|
19
|
-
odoo_addon_fs_attachment_s3-17.0.1.
|
|
20
|
-
odoo_addon_fs_attachment_s3-17.0.1.
|
|
21
|
-
odoo_addon_fs_attachment_s3-17.0.1.
|
|
20
|
+
odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info/METADATA,sha256=_sL71kPJi65Cucl7Z-bKgH7oMWGUd2Q9o4SBy6EjcNE,7335
|
|
21
|
+
odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
22
|
+
odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
23
|
+
odoo_addon_fs_attachment_s3-17.0.1.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|