diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-10-10 16:36:34 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-10-10 16:36:34 +0200 |
| commit | aaf01c6395e40fbbeb7c889dc930f0edb2b89e9c (patch) | |
| tree | 31a25926e0bb8272669dc82a64e7885b4b8d052e /addons/web/static/src/js | |
| parent | 153f5f5890acb65f191b5e19efec491852285b6b (diff) | |
[fix] dirty fix of the problem with list views in o2m
bzr revid: nicolas.vanhoren@openerp.com-20111010143634-sjld7z726l6ebg53
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/view_list.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index f169e641ab4..0ea1f7ec944 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -1151,7 +1151,8 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L var fields = _.pluck(_.select(this.columns, function(x) {return x.tag == "field"}), 'name'); var options = { offset: page * limit, limit: limit }; - dataset.read_slice(fields, options , function (records) { + //TODO xmo: investigate why we need to put the setTimeout + setTimeout(function() {dataset.read_slice(fields, options , function (records) { if (!self.datagroup.openable) { view.configure_pager(dataset); } else { @@ -1170,7 +1171,7 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L self.records.add(records, {silent: true}); list.render(); d.resolve(list); - }); + });}, 0); return d.promise(); }, setup_resequence_rows: function (list, dataset) { |
