I would like to customize the number of items a kanban view shows before the user has to click the 'show more' button. In addons/web_kanban/static/src/js/kanban.js there is the following snippet of code:
instance.web_kanban.KanbanView = instance.web.View.extend({
template: "KanbanView",
...
init: function (parent, dataset, view_id, options) {
this._super(parent, dataset, view_id, options);
...
this.limit = options.limit || 40;
...
},
Is there any way I can access the options variable from a custom module and set/override the limit value there?
This post https://www.odoo.com/forum/help-1/question/how-to-show-more-than-40-items-in-kanban-view-25752 provides a solution for setting the number of items, but it involves hardcoding the value in the original js file, but that's a bit tedious to maintain in the long run.