[REF] web_kanban: allow a custom limit defined in the arch

With this commit, it's now possible to set an arbitrary limit on any
kanban view by adding a limit attribut to the root kanban tag in a
kanban definition.
This commit is contained in:
Simon Lejeune
2016-10-13 15:59:20 +02:00
parent 421fe962eb
commit 8a87c382ba
@@ -62,7 +62,7 @@ var KanbanView = View.extend({
this.qweb = new QWeb(session.debug, {_s: session.origin});
this.limit = this.options.limit || 40;
this.limit = this.options.limit || parseInt(this.fields_view.arch.attrs.limit, 10) || 40;
this.fields = {};
this.fields_keys = _.keys(this.fields_view.fields);
this.grouped = undefined;