[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
This commit is contained in:
Xavier Morel 2012-02-28 11:12:00 +01:00
parent f210e73f21
commit 4b74a35c76
1 changed files with 4 additions and 0 deletions

View File

@ -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(),