[FIX] res_partner: conditional colorize of avatar

colorize parameter was not taken into account when colorizing the image.
Thanks Wolfgang Taferner for pointing it out.
This commit is contained in:
Thibault Delavallée
2016-01-12 10:29:59 +01:00
parent e636d98741
commit c3db39ee25
+1 -1
View File
@@ -313,7 +313,7 @@ class res_partner(osv.Model, format_address):
image = f.read()
# colorize user avatars
if not is_company:
if not is_company and colorize:
image = tools.image_colorize(image)
return tools.image_resize_image_big(image.encode('base64'))