[MIG] attachment_swift: Migration to 14.0

This commit is contained in:
Patrick Tombez
2020-11-03 15:30:48 +01:00
parent 049205e560
commit 3655bce3ae
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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':