From dd9abf611910bd94962b4541873ded6bbbd5adba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 14 May 2024 15:25:22 +0200 Subject: [PATCH] Allow web_shop as key for product image Closes #13258 (grafted from 22fde2599352ec0ccac111265f45d9caa9d82af4) --HG-- branch : 7.0 --- modules/web_shop/product.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/web_shop/product.py b/modules/web_shop/product.py index 2446ae6807..70877b2422 100644 --- a/modules/web_shop/product.py +++ b/modules/web_shop/product.py @@ -48,3 +48,7 @@ class Image(metaclass=PoolMeta): __name__ = 'product.image' web_shop = fields.Boolean("Web Shop") + + @classmethod + def allowed_match_keys(cls): + return super().allowed_match_keys() | {'web_shop'}