[FIX] website_crm_partner_assign: Partners images size.

Small fix on the template to ensure the size of the partners's
images will never be larger than 128px.

closes odoo/odoo#43875

X-original-commit: 4879ace6868e02703069bcf420bd77275ee381f7
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Arnaud Baes
2020-01-23 18:23:12 +00:00
parent 255f7219a9
commit 13c1f4fa34
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -130,3 +130,8 @@ span.o_force_ltr {
max-width: 64px;
max-height: 64px;
}
.o_image_128_max {
max-width: 128px;
max-height: 128px;
}
@@ -83,7 +83,7 @@
<div class="media mt-3">
<a t-attf-href="/partners/#{slug(partner)}?#{current_grade and 'grade_id=%s&amp;' % current_grade.id}#{current_country and 'country_id=%s' % current_country.id}"
t-field="partner.image_128"
t-options='{"widget": "image", "class": "mr-3"}'
t-options='{"widget": "image", "class": "mr-3 o_image_128_max"}'
></a>
<div class="media-body o_partner_body" style="min-height: 64px;">
<a t-attf-href="/partners/#{slug(partner)}?#{current_grade and 'grade_id=%s&amp;' % current_grade.id}#{current_country and 'country_id=%s' % current_country.id}">