diff --git a/__init__.py b/__init__.py index 94e680c9a8..7e2ac4cf84 100644 --- a/__init__.py +++ b/__init__.py @@ -10,6 +10,7 @@ from .stock import * def register(): Pool.register( Template, + Product, Configuration, LandedCost, LandedCost_Shipment, diff --git a/product.py b/product.py index 1855bd4cba..994ada0c0f 100644 --- a/product.py +++ b/product.py @@ -5,7 +5,7 @@ from trytond.model import fields from trytond.pyson import Eval -__all__ = ['Template'] +__all__ = ['Template', 'Product'] class Template: @@ -15,3 +15,8 @@ class Template: 'readonly': ~Eval('active', True), 'invisible': Eval('type') != 'service', }, depends=['active', 'type']) + + +class Product: + __metaclass__ = PoolMeta + __name__ = 'product.product'