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