[FIX] fleet: return_action_to_open
The 'group_by' must be poped from the context in function return_action_to_open because the act_window can call another model. opw:710363
This commit is contained in:
@@ -196,6 +196,7 @@ class fleet_vehicle(osv.Model):
|
||||
if context is None:
|
||||
context = {}
|
||||
if context.get('xml_id'):
|
||||
context.pop('group_by', False)
|
||||
res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid ,'fleet', context['xml_id'], context=context)
|
||||
res['context'] = context
|
||||
res['context'].update({'default_vehicle_id': ids[0]})
|
||||
|
||||
Reference in New Issue
Block a user