From f7f1ba40e28630d3a2abe2d72fdf8cc1d68d5f1a Mon Sep 17 00:00:00 2001 From: resteve Date: Mon, 8 Jul 2013 12:54:15 +0200 Subject: [PATCH] Default locations depends on type review975002 issue3289 (transplanted from 77b6eb28abfb3cabd168ae2cb3e6257ce7f50216) --- product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product.py b/product.py index 49a5a96c10..5072162e81 100644 --- a/product.py +++ b/product.py @@ -13,4 +13,5 @@ class Product: locations = fields.One2Many('stock.product.location', 'product', 'Default Locations', states={ 'invisible': ~Eval('type').in_(['goods', 'assets']), - }) + }, + depends=['type'])