[FIX] mail: unknown icon
When the attachment type is not defined, the icon used must be unknown.png closes#7336
This commit is contained in:
parent
25d365ee69
commit
3062b66d21
|
@ -92,7 +92,7 @@
|
||||||
<t t-if="attachment.file_type_icon !== 'webimage'">
|
<t t-if="attachment.file_type_icon !== 'webimage'">
|
||||||
<div t-attf-class="oe_attachment #{attachment.upload ? 'oe_uploading' : ''}">
|
<div t-attf-class="oe_attachment #{attachment.upload ? 'oe_uploading' : ''}">
|
||||||
<a t-att-href='attachment.url' target="_blank">
|
<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>
|
<div class='oe_name'><t t-raw='attachment.name' /></div>
|
||||||
</a>
|
</a>
|
||||||
<div t-if="!attachment.upload" class='oe_delete oe_e' title="Delete this attachment" t-att-data-id="attachment.id">[</div>
|
<div t-if="!attachment.upload" class='oe_delete oe_e' title="Delete this attachment" t-att-data-id="attachment.id">[</div>
|
||||||
|
|
Loading…
Reference in New Issue