diff --git a/__init__.py b/__init__.py index 7a21528cf2..cd92ca1c5f 100644 --- a/__init__.py +++ b/__init__.py @@ -8,4 +8,5 @@ from product import * def register(): Pool.register( Template, + Product, module='product_measurements', type_='model') diff --git a/product.py b/product.py index 06627aad5f..89bd840ff6 100644 --- a/product.py +++ b/product.py @@ -4,7 +4,7 @@ from trytond.model import fields from trytond.pyson import Eval, Bool, Id from trytond.pool import PoolMeta, Pool -__all__ = ['Template'] +__all__ = ['Template', 'Product'] __metaclass__ = PoolMeta NON_MEASURABLE = ['service'] @@ -170,3 +170,7 @@ class Template: ('//page[@id="measurements"]', 'states', { 'invisible': Eval('type').in_(NON_MEASURABLE), })] + + +class Product: + __name__ = 'product.product'