summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2017-03-09 10:38:17 +0100
committerGoffin Simon <sig@odoo.com>2017-03-09 13:54:33 +0100
commitbb0b4cb8f2b61abaa5321ecc7ff4eef95cfcf447 (patch)
tree1040a8f79535ec0e6c5f264e7dc92c4151c05361
parent9ff0eb05862ca4293570ffdf641ce04ba77266db (diff)
[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
-rw-r--r--addons/fleet/fleet.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/fleet/fleet.py b/addons/fleet/fleet.py
index 5367ea1f003..3f5a3729f8a 100644
--- a/addons/fleet/fleet.py
+++ b/addons/fleet/fleet.py
@@ -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]})