# The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. from trytond.model import ModelView, ModelSQL, fields from trytond.pool import PoolMeta from trytond.modules.product.product import STATES, DEPENDS __all__ = ['Brand', 'Template'] class Brand(ModelSQL, ModelView): '''Brand''' __name__ = 'product.brand' name = fields.Char('Name', required=True) class Template: __name__ = 'product.template' __metaclass__ = PoolMeta brand = fields.Many2One('product.brand', 'Brand', states=STATES, depends=DEPENDS)