summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph_view.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_graph/static/src/js/graph_view.js')
-rw-r--r--addons/web_graph/static/src/js/graph_view.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph_view.js b/addons/web_graph/static/src/js/graph_view.js
index a892f348511..dd4ba800245 100644
--- a/addons/web_graph/static/src/js/graph_view.js
+++ b/addons/web_graph/static/src/js/graph_view.js
@@ -31,10 +31,16 @@ instance.web_graph.GraphView = instance.web.View.extend({
get_domain: function () {},
get_groupby: function () {},
};
-
+ this.$buttons = options.$buttons;
this.view_loaded = $.Deferred();
},
+ start: function() {
+ var $buttons = instance.web.qweb.render("graph-view-buttons");
+ this.$buttons.html($buttons);
+ return this._super();
+ },
+
view_loading: function (fields_view_get) {
var self = this,
arch = fields_view_get.arch;
@@ -47,6 +53,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
row_groupby: [],
col_groupby: [],
graph_view: this,
+ $buttons: this.$buttons
};
_.each(arch.children, function (field) {