[MERGE] Merge last trunk
authorFabien Meghazi <fme@openerp.com>
Wed, 11 Jan 2012 08:53:37 +0000 (09:53 +0100)
committerFabien Meghazi <fme@openerp.com>
Wed, 11 Jan 2012 08:53:37 +0000 (09:53 +0100)
bzr revid: fme@openerp.com-20120111085337-u65f0pyr1n60mkaw

1  2 
addons/web/static/src/js/view_form.js
addons/web/static/src/js/view_list.js

Simple merge
@@@ -1288,9 -1301,9 +1300,9 @@@ openerp.web.ListView.Groups = openerp.w
              page = this.datagroup.openable ? this.page : view.page;
  
          var fields = _.pluck(_.select(this.columns, function(x) {return x.tag == "field"}), 'name');
-         var options = { offset: page * limit, limit: limit };
+         var options = { offset: page * limit, limit: limit, context: {bin_size: true} };
          //TODO xmo: investigate why we need to put the setTimeout
 -        $.async_when().then(function() {dataset.read_slice(fields, options , function (records) {
 +        $.async_when().then(function() {dataset.read_slice(fields, options).then(function (records) {
              // FIXME: ignominious hacks, parents (aka form view) should not send two ListView#reload_content concurrently
              if (self.records.length) {
                  self.records.reset(null, {silent: true});