Register Product
issue5087
This commit is contained in:
@@ -8,4 +8,5 @@ from product import *
|
||||
def register():
|
||||
Pool.register(
|
||||
Template,
|
||||
Product,
|
||||
module='product_measurements', type_='model')
|
||||
|
||||
+5
-1
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user