From 3655bce3ae282a0fa63ca234593c04e1e3fc0d8e Mon Sep 17 00:00:00 2001 From: Patrick Tombez Date: Tue, 3 Nov 2020 11:36:50 +0100 Subject: [PATCH] [MIG] attachment_swift: Migration to 14.0 --- attachment_swift/__manifest__.py | 4 ++-- attachment_swift/models/ir_attachment.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/attachment_swift/__manifest__.py b/attachment_swift/__manifest__.py index 69b247e..d78ea82 100644 --- a/attachment_swift/__manifest__.py +++ b/attachment_swift/__manifest__.py @@ -4,7 +4,7 @@ {'name': 'Attachments on Swift storage', 'summary': 'Store assets and attachments on a Swift compatible object store', - 'version': '13.0.1.0.0', + 'version': "14.0.1.0.0", 'author': 'Camptocamp,Odoo Community Association (OCA)', 'license': 'AGPL-3', 'category': 'Knowledge Management', @@ -17,5 +17,5 @@ }, 'website': 'https://www.camptocamp.com', 'data': [], - 'installable': False, + 'installable': True, } diff --git a/attachment_swift/models/ir_attachment.py b/attachment_swift/models/ir_attachment.py index bc81aca..f5b42de 100644 --- a/attachment_swift/models/ir_attachment.py +++ b/attachment_swift/models/ir_attachment.py @@ -121,7 +121,7 @@ class IrAttachment(models.Model): return conn @api.model - def _store_file_read(self, fname, bin_size=False): + def _store_file_read(self, fname): if fname.startswith('swift://'): swifturi = SwiftUri(fname) try: @@ -141,7 +141,7 @@ class IrAttachment(models.Model): 'Error reading object from Swift object store') return read else: - return super()._store_file_read(fname, bin_size) + return super()._store_file_read(fname) def _store_file_write(self, key, bin_data): if self._storage() == 'swift':