From 6d43f280c9bfa589a88dec9433948861a93b39d7 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 29 Jul 2016 12:47:08 +0200 Subject: [PATCH] [FIX] stock: do not quote static domain --- addons/stock/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/product.py b/addons/stock/product.py index 53ad35404bf..1f8d034f6c6 100644 --- a/addons/stock/product.py +++ b/addons/stock/product.py @@ -583,7 +583,7 @@ class product_category(osv.osv): return res _columns = { - 'route_ids': fields.many2many('stock.location.route', 'stock_location_route_categ', 'categ_id', 'route_id', 'Routes', domain="[('product_categ_selectable', '=', True)]"), + 'route_ids': fields.many2many('stock.location.route', 'stock_location_route_categ', 'categ_id', 'route_id', 'Routes', domain=[('product_categ_selectable', '=', True)]), 'removal_strategy_id': fields.many2one('product.removal', 'Force Removal Strategy', help="Set a specific removal strategy that will be used regardless of the source location for this product category"), 'total_route_ids': fields.function(calculate_total_routes, relation='stock.location.route', type='many2many', string='Total routes', readonly=True), }