diff options
| author | Gery Debongnie <ged@openerp.com> | 2014-01-24 16:16:35 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2014-01-24 16:16:35 +0100 |
| commit | c43147628b6cfe9eb62b0da797cdff3f2c53d443 (patch) | |
| tree | bf14e7fd8b344d056c59f1222bf6c4202fc68aca /addons/web_graph/static/src/js/graph_view.js | |
| parent | 524324ae4e4ec21b58d2d3a89340d1d36173b260 (diff) | |
[REF] lots of small tweaks to improve the code, and some small fixes, after xmo's code review (addon web_graph)
bzr revid: ged@openerp.com-20140124151635-14l3dchnrmujo5ni
Diffstat (limited to 'addons/web_graph/static/src/js/graph_view.js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph_view.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/web_graph/static/src/js/graph_view.js b/addons/web_graph/static/src/js/graph_view.js index 1122089f060..e1a50d4ff6d 100644 --- a/addons/web_graph/static/src/js/graph_view.js +++ b/addons/web_graph/static/src/js/graph_view.js @@ -39,7 +39,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ this.widget_config = { title: arch.attrs.string, stacked : (arch.attrs.stacked === 'True'), - mode: (arch.attrs.type) ? arch.attrs.type : 'bar', + mode: arch.attrs.type || 'bar', measures: [], row_groupby: [], col_groupby: [], @@ -181,15 +181,12 @@ instance.web_graph.GraphView = instance.web.View.extend({ } else { value = {attrs: {domain: [], context: context}}; } - // var value = (category === 'group_by') ? groupby.filter : {attrs:{domain: [], context: context}}; return { label: groupby.string, value: value }; }); }, - - }); }; |
