From b362c7efd905028c4ccc5a00ffd86743a2e3d59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 27 Apr 2016 17:22:27 +0200 Subject: [PATCH] [FIX] stock: default_get waits for a field list And not a 2-item dict that does not crash by chance. Hooray for python. --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index dab4f6a3c16..7c47f757198 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -3796,7 +3796,7 @@ class stock_warehouse(osv.osv): wh_loc_id = location_obj.create(cr, uid, loc_vals, context=context) vals['view_location_id'] = wh_loc_id #create all location - def_values = self.default_get(cr, uid, {'reception_steps', 'delivery_steps'}) + def_values = self.default_get(cr, uid, ['reception_steps', 'delivery_steps']) reception_steps = vals.get('reception_steps', def_values['reception_steps']) delivery_steps = vals.get('delivery_steps', def_values['delivery_steps']) context_with_inactive = context.copy()