[FIX] display problem in graph view in some cases
authorGéry Debongnie <ged@odoo.com>
Tue, 16 Sep 2014 08:11:47 +0000 (10:11 +0200)
committerGéry Debongnie <ged@odoo.com>
Tue, 16 Sep 2014 08:11:47 +0000 (10:11 +0200)
Recently, the graph view was changed to prevent changing groupbys
for active custom filters.  Unfortunately, I did not take into account
the fact that pivot table can be drawn in part when expanding rows.

The "frozen" parameter was then undefined and caused display problems,
this patch should fix the issue.

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

index 060eb70..97a5ad6 100644 (file)
@@ -389,7 +389,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
                 var rows = self.build_rows(header.children);
                 var doc_fragment = $(document.createDocumentFragment());
                 rows.map(function (row) {
-                    doc_fragment.append(self.draw_row(row));
+                    doc_fragment.append(self.draw_row(row, 0));
                 });
                 self.$row_clicked.after(doc_fragment);
             } else {