[FIX] base: contact image wrongly displayed
The image of a contact of a company was wrongly resized. Use image_small instead of image for correct ratio (anyway 48x48px). Remove image_preview as always use image_small (was wrongly positioned and considered as cache attribute, getting '&cache=NaN' urls...) opw 593992
This commit is contained in:
parent
a6f31ee8e8
commit
cda46d7d81
|
@ -215,7 +215,7 @@
|
|||
<div class="oe_module_vignette">
|
||||
<a type="open">
|
||||
<t t-if="record.has_image.raw_value === true">
|
||||
<img t-att-src="kanban_image('res.partner', 'image', record.id.value, {'preview_image': 'image_small'})" class="oe_avatar oe_kanban_avatar_smallbox"/>
|
||||
<img t-att-src="kanban_image('res.partner', 'image_small', record.id.value)" class="oe_avatar oe_kanban_avatar_smallbox"/>
|
||||
</t>
|
||||
<t t-if="record.image and record.image.raw_value !== false">
|
||||
<img t-att-src="'data:image/png;base64,'+record.image.raw_value" class="oe_avatar oe_kanban_avatar_smallbox"/>
|
||||
|
|
Loading…
Reference in New Issue