summaryrefslogtreecommitdiff
path: root/addons/web/controllers
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/web/controllers
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/web/controllers')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 85f01e3c83d..11996d46ecc 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1186,7 +1186,7 @@ class Binary(http.Controller):
'/web/partner_image/<int:rec_id>',
'/web/partner_image/<int:rec_id>/<string:field>',
'/web/partner_image/<int:rec_id>/<string:field>/<string:model>/'], type='http', auth="public")
- def content_image_partner(self, rec_id, field='image_small', model='res.partner', **kwargs):
+ def content_image_partner(self, rec_id, field='image_64', model='res.partner', **kwargs):
# other kwargs are ignored on purpose
return self._content_image(id=rec_id, model='res.partner', field=field,
placeholder='user_placeholder.jpg')