Default locations depends on type
review975002 issue3289 (transplanted from 77b6eb28abfb3cabd168ae2cb3e6257ce7f50216)
This commit is contained in:
1 parent
4d106b83e9
commit
f7f1ba40e2
1 file changed
+2
-1
+2
-1
@@ -13,4 +13,5 @@ class Product:
|
||||
locations = fields.One2Many('stock.product.location', 'product',
|
||||
'Default Locations', states={
|
||||
'invisible': ~Eval('type').in_(['goods', 'assets']),
|
||||
})
|
||||
},
|
||||
depends=['type'])
|
||||
Reference in new issue
Block a user