[FIX] mail_group: use default picture disc if not mimetype has been defined (else tb)
authorJeremy Kersten <jke@odoo.com>
Wed, 12 Nov 2014 16:30:45 +0000 (17:30 +0100)
committerJeremy Kersten <jke@odoo.com>
Thu, 13 Nov 2014 13:48:13 +0000 (14:48 +0100)
addons/website_mail_group/views/website_mail_group.xml

index b72f5f5..b8172e4 100644 (file)
                                                     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>