From 8bfe1e6b28c87dd48894e0ca55d83ae205f19a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 22 Oct 2021 00:41:28 +0200 Subject: [PATCH] Remove images when template is removed issue10884 review350831002 --- web.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web.py b/web.py index 83d2e4d107..9456a0b829 100644 --- a/web.py +++ b/web.py @@ -306,6 +306,9 @@ class Shop(metaclass=PoolMeta): template.set_shopify_identifier(self) for product in template.products: product.set_shopify_identifier(self) + if hasattr(template, 'images'): + for image in template.images: + image.set_shopify_identifier(self) def __shopify_update_images(self, template, shopify_product): if not hasattr(template, 'images'):