[FIX] fix the graphview field selection
authorGéry Debongnie <ged@odoo.com>
Tue, 20 May 2014 14:18:03 +0000 (16:18 +0200)
committerGéry Debongnie <ged@odoo.com>
Tue, 20 May 2014 14:18:03 +0000 (16:18 +0200)
searchview has been split in two parts, and the inputs are now located
in the drawer

addons/web_graph/static/src/js/graph_widget.js

index d003845..ae9be9e 100644 (file)
@@ -86,7 +86,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
     get_search_fields: function () {
         var self = this;
 
-        var groupbygroups = _(this.search_view.inputs).select(function (g) {
+        var groupbygroups = _(this.search_view.drawer.inputs).select(function (g) {
             return g instanceof openerp.web.search.GroupbyGroup;
         });