summaryrefslogtreecommitdiff
path: root/addons/website_profile/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_profile/controllers/main.py')
-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'