Skip to content

Commit 566497e

Browse files
committed
[BOT] post-merge updates
1 parent 5fb3441 commit 566497e

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

fs_attachment/README.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Base Attachment Object Store
1111
!! This file is generated by oca-gen-addon-readme !!
1212
!! changes will be overwritten. !!
1313
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14-
!! source digest: sha256:d771f7a02048267a8f7f50b2ed914086e6d9ee83355f129c95fc1598eb63383d
14+
!! source digest: sha256:3b110e3a15c34238080338330d4601ba4e2660883cd45002b9de534a6e5f67f2
1515
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1616
1717
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -315,6 +315,17 @@ Tips & Tricks
315315
configuration of your storage to the production environment to make it read only.
316316
(The use of server environment files is a good way to do so).
317317

318+
* When enabling `Use As Default For Attachment` you must be aware that this
319+
option applies from the point when the `fs_attachment` has been loaded by
320+
Odoo. This means that some attachments (such as icons) created during the
321+
update of modules that are loaded before `fs_attachment` will still be stored
322+
in the location defined in the `ir_attachment.location` system parameter
323+
(which is `file` by default, meaning the regular on-disk `filestore`
324+
directory).
325+
326+
A simple way to work around this issue is to set the `ir_attachment.location`
327+
System Parameter record to `db`.
328+
318329
Changelog
319330
=========
320331

fs_attachment/static/description/index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ <h1>Base Attachment Object Store</h1>
372372
!! This file is generated by oca-gen-addon-readme !!
373373
!! changes will be overwritten. !!
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375-
!! source digest: sha256:d771f7a02048267a8f7f50b2ed914086e6d9ee83355f129c95fc1598eb63383d
375+
!! source digest: sha256:3b110e3a15c34238080338330d4601ba4e2660883cd45002b9de534a6e5f67f2
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377377
<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/16.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-16-0/storage-16-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=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>In some cases, you need to store attachment in another system that the Odoo’s
@@ -663,6 +663,16 @@ <h3><a class="toc-backref" href="#toc-entry-5">Tips &amp; Tricks</a></h3>
663663
configuration of your storage to the production environment to make it read only.
664664
(The use of server environment files is a good way to do so).</p>
665665
</li>
666+
<li><p class="first">When enabling <cite>Use As Default For Attachment</cite> you must be aware that this
667+
option applies from the point when the <cite>fs_attachment</cite> has been loaded by
668+
Odoo. This means that some attachments (such as icons) created during the
669+
update of modules that are loaded before <cite>fs_attachment</cite> will still be stored
670+
in the location defined in the <cite>ir_attachment.location</cite> system parameter
671+
(which is <cite>file</cite> by default, meaning the regular on-disk <cite>filestore</cite>
672+
directory).</p>
673+
<p>A simple way to work around this issue is to set the <cite>ir_attachment.location</cite>
674+
System Parameter record to <cite>db</cite>.</p>
675+
</li>
666676
</ul>
667677
</div>
668678
</div>

0 commit comments

Comments
 (0)