[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:
Goffin Simon
2017-03-09 13:54:33 +01:00
parent 9ff0eb0586
commit bb0b4cb8f2
+1
View File
@@ -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]})