diff --git a/__init__.py b/__init__.py index 39bdb569c7..f39eafaf7a 100644 --- a/__init__.py +++ b/__init__.py @@ -16,6 +16,7 @@ def register(): Purchase, ShipmentIn, Template, + Product, module='sale_supply', type_='model') Pool.register( HandlePurchaseCancellationException, diff --git a/product.py b/product.py index 61a889650e..f00687dd08 100644 --- a/product.py +++ b/product.py @@ -4,7 +4,7 @@ from trytond.model import fields from trytond.pool import PoolMeta from trytond.pyson import Eval -__all__ = ['Template'] +__all__ = ['Template', 'Product'] __metaclass__ = PoolMeta @@ -16,3 +16,7 @@ class Template: 'invisible': ~Eval('purchasable') | ~Eval('salable'), }, depends=['purchasable', 'salable']) + + +class Product: + __name__ = 'product.product'