Skip to content

Commit

Permalink
[FIX] product_multi_image: Fix image removal from variants
Browse files Browse the repository at this point in the history
  • Loading branch information
FFernandez-PlanetaTIC authored and pedrobaeza committed Jul 21, 2018
1 parent 57e4a1a commit bb4dca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product_multi_image/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _inverse_image_ids(self):
image.unlink()
else:
# Leave the images for the rest of the variants
image.product_variant_ids = variants.ids
image.product_variant_ids = [(6, 0, variants.ids)]

@api.multi
@api.depends('image_ids', 'product_tmpl_id.image_ids',
Expand Down

0 comments on commit bb4dca2

Please sign in to comment.