Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / addons / web_graph / static / src / js / graph_widget.js
index b6ba3a4..afb691e 100644 (file)
@@ -75,7 +75,9 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
 
         this.$buttons.find('button').tooltip();
         
-        return this.model.call('fields_get', []).then(function (f) {
+        return this.model.call('fields_get', {
+                    context: this.graph_view.dataset.context
+                }).then(function (f) {
             self.fields = f;
             self.fields.__count = {field:'__count', type: 'integer', string:_t('Count')};
             self.groupby_fields = self.get_groupby_fields();