summaryrefslogtreecommitdiff
path: root/addons/website_profile/controllers
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-09-13 08:45:07 +0000
committerThibault Delavallée <tde@odoo.com>2019-09-13 10:05:15 +0000
commit1dbeaddeae7d35ea367ceb4a033e97c0e1924f33 (patch)
tree4631d19f9b7651ffc476c3b9e8a421c01e906af5 /addons/website_profile/controllers
parent65c3be37fd284f42855e42b14953ebd9e6d9e6e7 (diff)
[FIX] website_profile: fix another broken image thingy
As image fields have been renamed recently [1] we have to update controllers of profile in order to write on image_1920, not image anymore. Task 2067872 (eLearning internal testing) Task 2058598 (survey internal testing) PR #36756 [1] See 58a2ffa26f1a3b0f9630ce16d11b758d18e20a21
Diffstat (limited to 'addons/website_profile/controllers')
-rw-r--r--addons/website_profile/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_profile/controllers/main.py b/addons/website_profile/controllers/main.py
index e11d68fa835..aaae098513b 100644
--- a/addons/website_profile/controllers/main.py
+++ b/addons/website_profile/controllers/main.py
@@ -137,10 +137,10 @@ class WebsiteProfile(http.Controller):
}
if 'clear_image' in kwargs:
- values['image'] = False
+ values['image_1920'] = False
elif kwargs.get('ufile'):
image = kwargs.get('ufile').read()
- values['image'] = base64.b64encode(image)
+ values['image_1920'] = base64.b64encode(image)
if request.uid == user.id: # the controller allows to edit only its own privacy settings; use partner management for other cases
values['website_published'] = kwargs.get('website_published') == 'True'