From 729e005cfe1fa831265adf3ebd8c94a67d982047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 2 Jan 2016 10:28:35 +0100 Subject: [PATCH] Register Product issue5087 --- __init__.py | 1 + product.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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'