[FIX] listview pagination

broken in fme@openerp.com-20110808144120-xlut0922rd61moxc, listview needs to get it from the action descriptor stored in the parent object

bzr revid: xmo@openerp.com-20110811084301-xp42ylhmv2ackhws
This commit is contained in:
Xavier Morel 2011-08-11 10:43:01 +02:00
parent 13c30f7b50
commit adf903f0b0
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,7 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi
/**
* Retrieves the view's number of records per page (|| section)
*
* options > defaults > indefinite
* options > defaults > parent.action.limit > indefinite
*
* @returns {Number|null}
*/
@ -69,6 +69,7 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi
if (this._limit === undefined) {
this._limit = (this.options.limit
|| this.defaults.limit
|| (this.widget_parent.action || {}).limit
|| null);
}
return this._limit;