From c8441a69c2497c3d26afee25b3e1baab8a15fec1 Mon Sep 17 00:00:00 2001 From: len-odoo Date: Thu, 13 Sep 2018 13:07:18 +0200 Subject: [PATCH] [FIX] project: remove group_by from the context The group_by was passed from context from the action spawning a new view. This meant that it could give a group_by a field that was not defined on the destination view, causing a js traceback. opw 1884035 --- addons/project/models/project.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 3b3030b26e4..0baf2fbff58 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -399,6 +399,7 @@ class Project(models.Model): action_context = safe_eval(action['context']) if action['context'] else {} action_context.update(self._context) action_context['search_default_parent_res_name'] = self.name + action_context.pop('group_by', None) return dict(action, context=action_context) # ---------------------------------------------------