diff --git a/addons/purchase/controllers/portal.py b/addons/purchase/controllers/portal.py index 400b6ed51fa..f718a9e4c02 100644 --- a/addons/purchase/controllers/portal.py +++ b/addons/purchase/controllers/portal.py @@ -2,10 +2,12 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import OrderedDict +from functools import partial from odoo import http from odoo.exceptions import AccessError, MissingError from odoo.http import request +from odoo.tools import image_resize_image from odoo.tools.translate import _ from odoo.addons.portal.controllers.portal import pager as portal_pager, CustomerPortal @@ -22,6 +24,7 @@ class CustomerPortal(CustomerPortal): def _purchase_order_get_page_view_values(self, order, access_token, **kwargs): values = { 'order': order, + 'resize_to_48': partial(image_resize_image, size=(48, 48)), } return self._get_page_view_values(order, access_token, values, 'my_purchases_history', True, **kwargs) diff --git a/addons/purchase/views/portal_templates.xml b/addons/purchase/views/portal_templates.xml index 5b57b343ccd..c125d4e18a8 100644 --- a/addons/purchase/views/portal_templates.xml +++ b/addons/purchase/views/portal_templates.xml @@ -95,7 +95,7 @@
- Product + Product