From 9844fc004dcd8b6f4dcef49d8a0e5941ce5154a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 19 Aug 2025 16:37:43 +0200 Subject: [PATCH] Define weight as Shopify fields on product template The product_measurement module defines the weight on the template. Closes #14173 --- modules/web_shop_shopify/product.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/web_shop_shopify/product.py b/modules/web_shop_shopify/product.py index 764b2aeb95..30bf2ad4b9 100644 --- a/modules/web_shop_shopify/product.py +++ b/modules/web_shop_shopify/product.py @@ -73,7 +73,7 @@ class Template(IdentifiersMixin, metaclass=PoolMeta): cls._shopify_fields.update([ 'name', 'web_shop_description', 'attribute_set', 'customs_category', 'tariff_codes_category', - 'country_of_origin']) + 'country_of_origin', 'weight', 'weight_uom']) categories = cls._shopify_uom_categories() cls.shopify_uom.domain = [ ('category', 'in', [Eval(c, -1) for c in categories]), @@ -154,8 +154,7 @@ class Product(IdentifiersMixin, metaclass=PoolMeta): @classmethod def __setup__(cls): super().__setup__() - cls._shopify_fields.update([ - 'code', 'weight', 'weight_uom', 'attributes']) + cls._shopify_fields.update(['code', 'attributes']) @classmethod def get_shopify_identifier_to_update(cls, records):