diff --git a/fs_product_multi_image/models/product_product.py b/fs_product_multi_image/models/product_product.py index 3f10ed7289..fd87e9a7d9 100644 --- a/fs_product_multi_image/models/product_product.py +++ b/fs_product_multi_image/models/product_product.py @@ -50,7 +50,7 @@ def _compute_variant_image_ids(self): lambda i: i._match_variant(variant) ) variant_image_ids = variant_image_ids.sorted( - key=lambda i: (i.sequence, i.name) + key=lambda i: (i.sequence, i.name or "") ) variant.variant_image_ids = variant_image_ids