Register Product

issue5087
This commit is contained in:
Cédric Krier
2016-01-02 10:28:35 +01:00
parent 4ff573a3ba
commit 729e005cfe
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ def register():
Purchase,
ShipmentIn,
Template,
Product,
module='sale_supply', type_='model')
Pool.register(
HandlePurchaseCancellationException,
+5 -1
View File
@@ -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'