summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authortbe-odoo <tbe@odoo.com>2018-03-01 18:39:49 +0100
committertbe-odoo <tbe@odoo.com>2018-03-02 13:16:26 +0100
commitaded844129496beebeb2cb6365a0d52d74051fe5 (patch)
treecf01676b68d8244852f2e825b61a711d3449b970 /addons/mail/static/src/xml/thread.xml
parent515160978ad6807504378600acec116674624abb (diff)
[FIX] mail: Check if attachment has mimetype
- Check if the attachment has a mimetype before trying to split its value.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
-rw-r--r--addons/mail/static/src/xml/thread.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml
index 8408e149113..b397a536981 100644
--- a/addons/mail/static/src/xml/thread.xml
+++ b/addons/mail/static/src/xml/thread.xml
@@ -267,7 +267,7 @@
</t>
<t t-name="mail.Attachment">
- <t t-set="type" t-value="attachment.mimetype.split('/').shift()"/>
+ <t t-set="type" t-value="attachment.mimetype and attachment.mimetype.split('/').shift()"/>
<div t-attf-class="o_attachment #{attachment.upload ? 'o_attachment_uploading' : ''}" t-att-title="attachment.name">
<t t-if="type == 'image'">
<div class="o_image_box">