Register Product

issue5087
This commit is contained in:
Cédric Krier
2016-01-02 10:28:03 +01:00
parent ad8eba4445
commit 56b63ce11b
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -8,4 +8,5 @@ from product import *
def register():
Pool.register(
Template,
Product,
module='product_measurements', type_='model')
+5 -1
View File
@@ -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'