Remove images when template is removed

issue10884
review350831002
This commit is contained in:
Cédric Krier committed 2021-10-22 00:41:28 +02:00
1 parent fe842262b7
commit 8bfe1e6b28
1 file changed
+3
+3
View File
@@ -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'):