Browse files

[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
  • Loading branch information...
len-odoo committed Sep 13, 2018
1 parent 1e0a92c commit c8441a69c2497c3d26afee25b3e1baab8a15fec1
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/project/models/
@@ -399,6 +399,7 @@ def action_view_all_rating(self):
action_context = safe_eval(action['context']) if action['context'] else {}
action_context['search_default_parent_res_name'] =
action_context.pop('group_by', None)
return dict(action, context=action_context)
# ---------------------------------------------------

0 comments on commit c8441a6

Please sign in to comment.