[FIX] fix context problem in graph view
authorGéry Debongnie <ged@odoo.com>
Fri, 26 Sep 2014 09:38:06 +0000 (11:38 +0200)
committerGéry Debongnie <ged@odoo.com>
Fri, 26 Sep 2014 09:43:59 +0000 (11:43 +0200)
commit0305010f2ff553798102b806758974f354325112
tree92540346db88d85fdadd808a0fe6d6154ab4ff4c
parent77f86f1591232549dd910fb495f3f8964fdc5bbc
[FIX] fix context problem in graph view

The group_by query expects the context to have group_by_no_leaf = true,
so we can not just blindly forward the context to the groupby query.
This is a defensive way to fix the problem, to avoid other possible
crashes.  But the context shouldn't have group_by_no_leaf anyway,
it does not make sense to explicitely do that in the action
addons/web_graph/static/src/js/graph_view.js