Skip to content
Snippets Groups Projects
Commit b428bf10 authored by ThanhDodeurOdoo's avatar ThanhDodeurOdoo
Browse files

[FIX] ir.attachment: thumbnails.

- attachments with res_field do not get thumbnails anymore.
parent dd7c0774
Branches
Tags
No related merge requests found
......@@ -459,7 +459,6 @@ class IrAttachment(models.Model):
vals.pop(field, False)
if 'mimetype' in vals or 'datas' in vals:
vals = self._check_contents(vals)
vals = self._make_thumbnail(vals)
if all([not attachment.res_field for attachment in self]):
vals = self._make_thumbnail(vals)
return super(IrAttachment, self).write(vals)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment