Register Product

issue5087
This commit is contained in:
Cédric Krier committed 2016-01-02 10:25:28 +01:00
1 parent fd2d9f91ce
commit b347ac6716
2 files changed
+7 -1

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ from .stock import *
def register():
Pool.register(
Template,
Product,
Configuration,
LandedCost,
LandedCost_Shipment,
+6 -1
View File
@@ -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'