[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:
len-odoo
2018-09-14 08:34:42 +02:00
committed by len-odoo
parent 1e0a92c996
commit c8441a69c2
+1
View File
@@ -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)
# ---------------------------------------------------