summaryrefslogtreecommitdiff
path: root/addons/website_customer
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-08-02 20:36:51 +0200
committerGitHub <noreply@github.com>2019-08-02 20:36:51 +0200
commit6df11fc42d965940e3dcdd64b5a197a60bb6f4e4 (patch)
treeeee38b8192d49fc2c3525b5ce21b80d9d3acc500 /addons/website_customer
parentec32fd54595614ee8763ba82c5862d79a3e21897 (diff)
parent45e3be94c0095b0814690de3cac9ab56afe32368 (diff)
[MERGE] *: rename image fields and use image.mixin
Merge commit for PR #34925 Related enterprise PR odoo/enterprise/pull/4865 The goal is to: - Use `image.mixin` on the models currently storing multiple image sizes. - Create Image field and use it on models where mixin is overkill. - Rename the image fields to contain the pixel number in the name. - Add 512 size. - Clean up `image.mixin`, zoom field, variant fields. Note: models that currently store only a single size image will not be changed in this PR. Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_customer')
-rw-r--r--addons/website_customer/views/website_customer_templates.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_customer/views/website_customer_templates.xml b/addons/website_customer/views/website_customer_templates.xml
index 9cd668d901d..8a5c917c1d1 100644
--- a/addons/website_customer/views/website_customer_templates.xml
+++ b/addons/website_customer/views/website_customer_templates.xml
@@ -36,7 +36,7 @@
<t t-foreach="partners" t-as="partner">
<div class="media mt-3">
<a t-attf-href="/customers/#{slug(partner)}"
- t-field="partner.image_medium"
+ t-field="partner.image_128"
t-options='{"widget": "image", "class": "mr-3"}'
></a>
<div class="media-body" style="min-height: 64px;">
@@ -197,7 +197,7 @@
</a>
</h4>
<div><a t-attf-href="/partners/#{slug(partner.assigned_partner_id)}"
- t-field="partner.assigned_partner_id.image_medium"
+ t-field="partner.assigned_partner_id.image_128"
t-options='{"widget": "image", "class": "d-block mx-auto"}'
/>
</div>
@@ -218,7 +218,7 @@
<div t-foreach="partner.implemented_partner_ids" t-as="reference" class="media mt-3">
<t t-if="reference.website_published">
<a t-attf-href="/customers/#{slug(reference)}">
- <span t-field="reference.image_medium" t-options='{"widget": "image", "class": "d-block mr-3"}'/>
+ <span t-field="reference.image_128" t-options='{"widget": "image", "class": "d-block mr-3"}'/>
</a>
<div class="media-body" style="min-height: 64px;">
<a t-attf-href="/customers/#{slug(reference)}">