[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user