Register Product
issue5087
This commit is contained in:
@@ -16,6 +16,7 @@ def register():
|
||||
Purchase,
|
||||
ShipmentIn,
|
||||
Template,
|
||||
Product,
|
||||
module='sale_supply', type_='model')
|
||||
Pool.register(
|
||||
HandlePurchaseCancellationException,
|
||||
|
||||
+5
-1
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user