[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
This commit is contained in:
@@ -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)
|
||||
|
||||
# ---------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user