Remove unnecessary metaclass in new model of product attribute module

This commit is contained in:
Cédric Krier
2024-12-22 23:32:14 +01:00
parent 7ffc7ebd99
commit 195d4d1097
+3 -3
View File
@@ -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",