[IMP] mail: guard AttachmentImageComponent

Task-2797754

closes odoo/odoo#86707

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-21 16:01:48 +01:00
parent 742437ac38
commit 8a0abbd9f3
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mail.AttachmentImage" owl="1">
<div t-attf-class="{{ className }}" t-ref="root">
<t t-if="attachmentImage">
<t t-if="attachmentImage">
<div t-attf-class="{{ className }}" t-ref="root">
<div class="o_AttachmentImage d-flex position-relative m-1 flex-shrink-0"
t-att-class="{
'o-isUploading': attachmentImage.attachment.isUploading,
@@ -30,7 +30,7 @@
</div>
</t>
</div>
</t>
</div>
</div>
</t>
</t>
</templates>