[FIX] stock: default_get waits for a field list

And not a 2-item dict that does not crash by chance. Hooray for python.
This commit is contained in:
Thibault Delavallée
2016-04-27 18:13:38 +02:00
parent 197a5cc8a8
commit b362c7efd9
+1 -1
View File
@@ -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()