[MERGE] forward port branch 8.0 up to 91f11f8bd6

This commit is contained in:
Christophe Simonis
2017-01-23 10:46:39 +01:00
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
The Czech Republic, 18.01.2017
I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Jiri Zatloukal zatloukal@apitea.com https://github.com/jirizatloukal
+1 -1
View File
@@ -232,7 +232,7 @@ def image_colorize(original, randomize=True, color=(255, 255, 255)):
# generate the background color, past it as background
if randomize:
color = (randint(32, 224), randint(32, 224), randint(32, 224))
image.paste(color)
image.paste(color, box=(0, 0) + original.size)
image.paste(original, mask=original)
# return the new image
buffer = StringIO.StringIO()