From 8bc590a7b939e23336557b24bae11dc1b11dfd16 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 28 Jul 2016 14:16:16 +0200 Subject: [PATCH] [FIX] stock: default domain on a many2many field The default domain on a many2many field must be list and not a string. opw:684474 --- 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 c2ee1310ade..53ad35404bf 100644 --- a/addons/stock/product.py +++ b/addons/stock/product.py @@ -437,7 +437,7 @@ class product_template(osv.osv): fnct_search=_search_product_quantity, type='float', string='Outgoing'), 'location_id': fields.dummy(string='Location', relation='stock.location', type='many2one'), 'warehouse_id': fields.dummy(string='Warehouse', relation='stock.warehouse', type='many2one'), - 'route_ids': fields.many2many('stock.location.route', 'stock_route_product', 'product_id', 'route_id', 'Routes', domain="[('product_selectable', '=', True)]", + 'route_ids': fields.many2many('stock.location.route', 'stock_route_product', 'product_id', 'route_id', 'Routes', domain=[('product_selectable', '=', True)], help="Depending on the modules installed, this will allow you to define the route of the product: whether it will be bought, manufactured, MTO/MTS,..."), 'nbr_reordering_rules': fields.function(_compute_nbr_reordering_rules, string='Reordering Rules', type='integer', multi=True), 'reordering_min_qty': fields.function(_compute_nbr_reordering_rules, type='float', multi=True),