Fix inverse datas for swift storage

This commit is contained in:
Timon Tschanz
2019-05-31 18:03:47 +02:00
parent 92ca087101
commit f5fdc3a7cf
2 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class IrAttachment(models.Model):
if fname:
self._file_delete(fname)
continue
self._data_set('datas', attach.datas, None)
attach._data_set('datas', attach.datas, None)
def _register_hook(self, cr):
super(IrAttachment, self)._register_hook(cr)