diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-04-26 10:55:28 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-04-29 13:45:34 +0000 |
| commit | 425f197f164ad8a90010b4fe8957def34b5e4bf0 (patch) | |
| tree | c17f3fd0bdc5e85a82886e76b664328dfc2f1c47 /addons/purchase/controllers | |
| parent | e479138558e6b20f87e30d518e1ea3b1468a0031 (diff) | |
[IMP] tools,base,*: remove intermediary image functions
* = hr, im_livechat, mail, payment, purchase, web, web_editor, web_unsplash,
website_profile, website_slides
Since the merge of all image tools into one function, the intermediary functions
are not needed anymore.
task-1958000
PR: #31811
Diffstat (limited to 'addons/purchase/controllers')
| -rw-r--r-- | addons/purchase/controllers/portal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/purchase/controllers/portal.py b/addons/purchase/controllers/portal.py index 8e5cea717ac..171373bbec5 100644 --- a/addons/purchase/controllers/portal.py +++ b/addons/purchase/controllers/portal.py @@ -7,7 +7,7 @@ from collections import OrderedDict 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 import image_process from odoo.tools.translate import _ from odoo.addons.portal.controllers.portal import pager as portal_pager, CustomerPortal from odoo.addons.web.controllers.main import Binary @@ -28,7 +28,7 @@ class CustomerPortal(CustomerPortal): def resize_to_48(b64source): if not b64source: b64source = base64.b64encode(Binary().placeholder()) - return image_resize_image(b64source, size=(48, 48)) + return image_process(b64source, size=(48, 48)) values = { 'order': order, |
