[FIX] mail_group: use default picture disc if not mimetype has been defined (else tb)

This commit is contained in:
Jeremy Kersten
2014-11-13 14:48:13 +01:00
parent b8071bbaca
commit 2e604c9d08
@@ -212,7 +212,7 @@
t-att-title="attachment.name"/>
</t>
<t t-if="attachment.file_type != 'webimage'">
<img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
<img t-att-src="'/mail/static/src/img/mimetypes/' + (attachment.file_type or 'disk') + '.png'"
class='oe_attachment_webimage'
t-att-title="attachment.name"/>
</t>