summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/mail.xml
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2015-07-02 12:40:13 +0200
committerGoffin Simon <sig@odoo.com>2015-07-03 11:35:31 +0200
commit3062b66d2177d096633b32c15acbd1946257a2a8 (patch)
treef2a55e721cc0278f66f0037338e1bb7a9295c7c3 /addons/mail/static/src/xml/mail.xml
parent25d365ee69c60e9a1778c1ff036b014398a1dbad (diff)
[FIX] mail: unknown icon
When the attachment type is not defined, the icon used must be unknown.png closes#7336
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
-rw-r--r--addons/mail/static/src/xml/mail.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index 0eb7fcff550..54d3bae3eb5 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -92,7 +92,7 @@
<t t-if="attachment.file_type_icon !== 'webimage'">
<div t-attf-class="oe_attachment #{attachment.upload ? 'oe_uploading' : ''}">
<a t-att-href='attachment.url' target="_blank">
- <img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type_icon + '.png'"></img>
+ <img t-att-src="'/mail/static/src/img/mimetypes/' + (attachment.file_type_icon or 'unknown') + '.png'"></img>
<div class='oe_name'><t t-raw='attachment.name' /></div>
</a>
<div t-if="!attachment.upload" class='oe_delete oe_e' title="Delete this attachment" t-att-data-id="attachment.id">[</div>