[FIX] group_by using old code
authorXavier Morel <xmo@openerp.com>
Tue, 27 Nov 2012 14:39:17 +0000 (15:39 +0100)
committerXavier Morel <xmo@openerp.com>
Tue, 27 Nov 2012 14:39:17 +0000 (15:39 +0100)
bzr revid: xmo@openerp.com-20121127143917-pk4un6zi1v96niyr

addons/web/static/src/js/data.js

index 5988962..e823e6f 100644 (file)
@@ -123,9 +123,8 @@ instance.web.Query = instance.web.Class.extend({
 
         var self = this;
 
-        // FIXME: when pyeval is merged
-        var ctx = instance.session.test_eval_contexts(
-                [this._model.context(this._context)]);
+        var ctx = instance.web.pyeval.eval(
+            'context', this._model.context(this._context));
         return this._model.call('read_group', {
             groupby: grouping,
             fields: _.uniq(grouping.concat(this._fields || [])),