From 195d4d10973da9c6e7cda28e2ea48c461e071cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 22 Dec 2024 23:32:14 +0100 Subject: [PATCH] Remove unnecessary metaclass in new model of product attribute module --- modules/product_attribute/product.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/product_attribute/product.py b/modules/product_attribute/product.py index dbf13289e2..a6eacd5752 100644 --- a/modules/product_attribute/product.py +++ b/modules/product_attribute/product.py @@ -6,7 +6,7 @@ from trytond.pool import PoolMeta from trytond.pyson import Eval -class AttributeSet(ModelSQL, ModelView, metaclass=PoolMeta): +class AttributeSet(ModelSQL, ModelView): __name__ = 'product.attribute.set' name = fields.Char('Name', required=True, translate=True, help="The main identifier of product attribute set.") @@ -15,14 +15,14 @@ class AttributeSet(ModelSQL, ModelView, metaclass=PoolMeta): help="Add attributes to the set.") -class Attribute(DictSchemaMixin, ModelSQL, ModelView, metaclass=PoolMeta): +class Attribute(DictSchemaMixin, ModelSQL, ModelView): __name__ = 'product.attribute' sets = fields.Many2Many('product.attribute-product.attribute-set', 'attribute', 'attribute_set', 'Sets', help="Add sets to the attribute.") -class AttributeAttributeSet(ModelSQL, metaclass=PoolMeta): +class AttributeAttributeSet(ModelSQL): __name__ = 'product.attribute-product.attribute-set' attribute = fields.Many2One( 'product.attribute', "Attribute",