Register Product
issue5087
This commit is contained in:
1 parent
fd2d9f91ce
commit
b347ac6716
2 files changed
+7
-1
No files matched your search
@@ -10,6 +10,7 @@ from .stock import *
|
||||
def register():
|
||||
Pool.register(
|
||||
Template,
|
||||
Product,
|
||||
Configuration,
|
||||
LandedCost,
|
||||
LandedCost_Shipment,
|
||||
|
||||
+6
-1
@@ -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'
|
||||
Reference in new issue
Block a user