summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-01-10 15:35:56 +0100
committerXavier Morel <xmo@openerp.com>2012-01-10 15:35:56 +0100
commit4cc9cb83cede980383709dfebe6ce48d436aaa7f (patch)
tree59e51b2a502c1b8437e347d317e9136936376ab9 /addons/web/static/src
parentee9a9558c0f7a0e290ebcdfb0ce0b9be9751daf8 (diff)
[IMP] add bin_size flag to listview reads in order not to fetch binary file contents
bzr revid: xmo@openerp.com-20120110143556-ijsmmhvenw93vzfb
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js
index 1c4911974fe..6b1621af74c 100644
--- a/addons/web/static/src/js/view_list.js
+++ b/addons/web/static/src/js/view_list.js
@@ -1289,7 +1289,7 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L
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) {
// FIXME: ignominious hacks, parents (aka form view) should not send two ListView#reload_content concurrently