[IMP] web: remove title from attachment image
This commit remove the title on the attachment image widget when not in debug mode. The title gave the name of the file and wasn't really necessary as it is rather a technical info. task 3343366 closes odoo/odoo#123895 Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
<t t-name="web.AttachmentImageField" owl="1">
|
||||
<div class="o_attachment_image">
|
||||
<img t-if="props.record.data[props.name]" t-attf-src="/web/image/{{ props.record.data[props.name][0] }}?unique=1" t-att-title="props.record.data[props.name][1]" alt="Image" />
|
||||
<img t-if="props.record.data[props.name]" t-attf-src="/web/image/{{ props.record.data[props.name][0] }}?unique=1" t-att-title="!!env.debug and props.record.data[props.name][1]" alt="Image" />
|
||||
</div>
|
||||
</t>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user