Add missing states on boms
This commit is contained in:
1 parent
8093e7ab3c
commit
beae5e9a12
1 file changed
+5
-1
+5
-1
@@ -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__()
|
||||
|
||||
Reference in new issue
Block a user