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/web_editor/controllers/main.py | |
| 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/web_editor/controllers/main.py')
| -rw-r--r-- | addons/web_editor/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index d4542f8505d..edc23e0da76 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -164,7 +164,7 @@ class Web_Editor(http.Controller): def _image_to_attachment(self, res_model, res_id, image_base64, name, datas_fname, disable_optimization=None): Attachments = request.env['ir.attachment'] if not disable_optimization: - image_base64 = tools.image_optimize_for_web(image_base64) + image_base64 = tools.image_process(image_base64, verify_resolution=True) attachment = Attachments.create({ 'name': name, 'datas_fname': datas_fname, |
