[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user