Default locations depends on type

review975002
issue3289
This commit is contained in:
resteve
2013-07-08 12:54:15 +02:00
parent 6392dafc37
commit ffc4f5f757
+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'])