Default locations depends on type

review975002
issue3289
(transplanted from 77b6eb28abfb3cabd168ae2cb3e6257ce7f50216)
This commit is contained in:
resteve committed 2013-07-08 12:54:15 +02:00
1 parent 4d106b83e9
commit f7f1ba40e2
1 file changed
+2 -1
+2 -1
View File
@@ -13,4 +13,5 @@ class Product:
locations = fields.One2Many('stock.product.location', 'product',
'Default Locations', states={
'invisible': ~Eval('type').in_(['goods', 'assets']),
})
},
depends=['type'])