Add missing states on boms

This commit is contained in:
Cédric Krier committed 2012-06-13 23:38:52 +02:00
1 parent 8093e7ab3c
commit beae5e9a12
1 file changed
+5 -1
+5 -1
View File
@@ -8,7 +8,11 @@ class Product(ModelSQL, ModelView):
_name = 'product.product'
boms = fields.One2Many('product.product-production.bom', 'product',
'BOMs', order=[('sequence', 'ASC'), ('id', 'ASC')])
'BOMs', order=[('sequence', 'ASC'), ('id', 'ASC')],
states={
'invisible': Eval('type', 'service') == 'service',
},
depends=['type'])
def __init__(self):
super(Product, self).__init__()