diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-02-28 11:12:00 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-02-28 11:12:00 +0100 |
| commit | 4b74a35c76b3a042d893976bc6cf2e63b653af05 (patch) | |
| tree | 6d6cdcccd6dd4816ebfd0f857a5481347b5fe48e /addons/web/static/src | |
| parent | f210e73f219501e995258cd063863dc027a527b4 (diff) | |
[FIX] list paginator's 'last page' button: not all state was transferred between datasets during paginator configuration
lp bug: https://launchpad.net/bugs/939614 fixed
bzr revid: xmo@openerp.com-20120228101200-atisgrb2fb0eqi1g
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_list.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index d2e421b2fde..c44b62d08f2 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -291,6 +291,10 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView# */ configure_pager: function (dataset) { this.dataset.ids = dataset.ids; + // Not exactly clean + if (dataset._length) { + this.dataset._length = dataset._length; + } var limit = this.limit(), total = dataset.size(), |
