diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-03-06 17:13:58 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-03-06 17:13:58 +0100 |
| commit | 8b13a999675d053d6bb902ab0880eec05bbc9a8d (patch) | |
| tree | 10062b893a18aa224dce6284b434221db3015c38 /addons/web/static/src/js/data.js | |
| parent | 075ac184f8989c4abcdd36851fe89881e92508cc (diff) | |
[FIX] handling of _count in queries: it can be 0, which is valid but falsy
bzr revid: xmo@openerp.com-20120306161358-py6zz2bts9b3cb1x
Diffstat (limited to 'addons/web/static/src/js/data.js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 8e9ea1d3088..c517dd53394 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -98,7 +98,7 @@ openerp.web.Query = openerp.web.Class.extend({ * @returns {jQuery.Deferred<Number>} */ count: function () { - if (this._count) { return $.when(this._count); } + if (this._count != undefined) { return $.when(this._count); } return this._model.call( 'search_count', [this._filter], { context: this._model.context(this._context)}); |
