Skip to content

Commit

Permalink
[MIG] fs_attachment: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qgroulard committed Sep 26, 2024
1 parent 05106b1 commit f918361
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
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": "17.0.1.0.2",
"version": "18.0.1.0.0",
"author": "Camptocamp, ACSONE SA/NV, Odoo Community Association (OCA)",
"license": "AGPL-3",
"development_status": "Beta",
Expand Down
6 changes: 2 additions & 4 deletions fs_attachment/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,9 @@ def _compute_fs_storage_id(self):

@staticmethod
def _is_storage_disabled(storage=None, log=True):
msg = _("Storages are disabled (see environment configuration).")
msg = "Storages are disabled (see environment configuration)."
if storage:
msg = _("Storage '%s' is disabled (see environment configuration).") % (
storage,
)
msg = f"Storage '{storage}' is disabled (see environment configuration)."
is_disabled = is_true(os.environ.get("DISABLE_ATTACHMENT_STORAGE"))
if is_disabled and log:
_logger.warning(msg)
Expand Down
8 changes: 4 additions & 4 deletions fs_attachment/views/fs_storage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
<field name="arch" type="xml">
<field name="options" position="after">
<field name="model_ids" widget="many2many">
<tree>
<list>
<field name="name" />
<field name="model" />
</tree>
</list>
</field>
<field name="field_ids" widget="many2many">
<tree>
<list>
<field name="name" />
<field name="model" />
</tree>
</list>
</field>
<separator string="Attachment" />
<field name="optimizes_directory_path" />
Expand Down

0 comments on commit f918361

Please sign in to comment.