[FIX] list should go back to first page on new search

lp bug: https://launchpad.net/bugs/898546 fixed

bzr revid: xmo@openerp.com-20111201104233-kpkywab12mqbkzmu
This commit is contained in:
Xavier Morel 2011-12-01 11:42:33 +01:00
parent 3ada43620e
commit 19d9cc0481
1 changed files with 1 additions and 0 deletions

View File

@ -462,6 +462,7 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
* @param {Object} results results of evaluating domain and process for a search
*/
do_search: function (domain, context, group_by) {
this.page = 0;
this.groups.datagroup = new openerp.web.DataGroup(
this, this.model, domain, context, group_by);
this.groups.datagroup.sort = this.dataset._sort;