[FIX] web: correct list view limit computation.

Bug introduced during last forward-port.
This commit is contained in:
Christophe Simonis
2015-08-24 18:35:10 +02:00
parent 84c0e8f441
commit f5259d67a7
+1 -1
View File
@@ -128,7 +128,6 @@ var ListView = View.extend( /** @lends instance.web.ListView# */ {
// the view's number of records per page (|| section)
this._limit = (this.options.limit ||
this.defaults.limit ||
parseInt(this.fields_view.arch.attrs.limit, 10) ||
(this.getParent().action || {}).limit ||
80);
},
@@ -228,6 +227,7 @@ var ListView = View.extend( /** @lends instance.web.ListView# */ {
var self = this;
this.fields_view = data;
this.name = "" + this.fields_view.arch.attrs.string;
this._limit = parseInt(this.fields_view.arch.attrs.limit, 10) || this._limit;
// Retrieve the decoration defined on the model's list view
this.decoration = _.pick(this.fields_view.arch.attrs, function(value, key) {