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

This commit is contained in:
Jeremy Kersten 2014-11-12 17:30:45 +01:00
parent b8071bbaca
commit 2e604c9d08
1 changed files with 1 additions and 1 deletions

View File

@ -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>