Skip to content
Snippets Groups Projects
Commit c418d734 authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] product: image update in variants

Fixes #19945
parent 4cdc1f4d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment