summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2015-01-06 12:27:28 +0100
committerMartin Trigaux <mat@odoo.com>2015-01-06 12:31:25 +0100
commitcda46d7d811dada90fb491799a51e266c96bb454 (patch)
tree304d04ba8aa86099c0a4dec83a3e5ed31ed2afd3
parenta6f31ee8e8ae120254ade5e57772258ce367ad9c (diff)
[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
-rw-r--r--openerp/addons/base/res/res_partner_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/addons/base/res/res_partner_view.xml b/openerp/addons/base/res/res_partner_view.xml
index 185f176e16d..34ad354a99d 100644
--- a/openerp/addons/base/res/res_partner_view.xml
+++ b/openerp/addons/base/res/res_partner_view.xml
@@ -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"/>