[FIX] Forgot to update a field name.

bzr revid: tde@openerp.com-20120323091747-i2dhjhy5witysd7s
This commit is contained in:
Thibault Delavallée
2012-03-23 10:17:47 +01:00
parent d7be1e92d0
commit 6e0643868e
+1 -1
View File
@@ -222,7 +222,7 @@ class users(osv.osv):
return self.write(cr, uid, [id], {'avatar_stored': value}, context=context)
def _avatar_resize(self, cr, uid, avatar, context=None):
image_stream = io.BytesIO(avatar.decode('base64'))
image_stream = io.BytesIO(avatar_stored.decode('base64'))
img = Image.open(image_stream)
img.thumbnail((180, 150), Image.ANTIALIAS)
img_stream = StringIO.StringIO()