diff --git a/addons/product/models/product.py b/addons/product/models/product.py index 974c1eeeb5bc03af36d35efba7407a78328831b1..b854925701e818e39b62887ea4a3596c1f43f599 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -261,6 +261,8 @@ class ProductProduct(models.Model): @api.one def _set_image_value(self, value): + if isinstance(value, pycompat.text_type): + value = value.encode('ascii') image = tools.image_resize_image_big(value) if self.product_tmpl_id.image: self.image_variant = image