[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:
parent
3ada43620e
commit
19d9cc0481
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue