<commit_before>odoo.define('web_kanban.KanbanView', function (require) {
"use strict";

var core = require('web.core');
var data = require('web.data');
var data_manager = require('web.data_manager');
var Model = require('web.DataModel');
var Dialog = require('web.Dialog');
var form_common = require('web.form_common');
var Pager = require('web.Pager');
var pyeval = require('web.pyeval');
var QWeb = require('web.QWeb');
var session = require('web.session');
var utils = require('web.utils');
var View = require('web.View');

var KanbanColumn = require('web_kanban.Column');
var quick_create = require('web_kanban.quick_create');
var KanbanRecord = require('web_kanban.Record');
var kanban_widgets = require('web_kanban.widgets');

var qweb = core.qweb;
var _lt = core._lt;
var _t = core._t;
var ColumnQuickCreate = quick_create.ColumnQuickCreate;
var fields_registry = kanban_widgets.registry;

var KanbanView = View.extend({
    accesskey: "k",
    className: "o_kanban_view",
    custom_events: {
        'kanban_record_open': 'open_record',
        'kanban_record_edit': 'edit_record',
        'kanban_record_delete': 'delete_record',
        'kanban_do_action': 'open_action',
        'kanban_reload': 'do_reload',
        'kanban_column_resequence': function (event) {
            this.resequence_column(event.target);
        },
        'kanban_record_update': 'update_record',
        'kanban_column_add_record': 'add_record_to_column',
        'kanban_column_delete': 'delete_column',
        'kanban_column_archive_records': 'archive_records',
        'column_add_record': 'column_add_record',
        'quick_create_add_column': 'add_new_column',
        'kanban_load_more': 'load_more',
        'kanban_call_method': 'call_method',
    },
    defaults: _.extend(View.prototype.defaults, {
        quick_creatable: true,
        creatable: true,
        create_text: undefined,
        read_only_mode: false,
        confirm_on_delete: true,
    }),
    display_name: _lt("Kanban"),
    icon: 'fa-th-large',
    mobile_friendly: true,

    init: function () {
        this._super.apply(this, arguments);

        this.qweb = new QWeb(session.debug, {_s: session.origin});

        this.limit = this.options.limit || 40;
        this.fields = {};
        this.fields_keys = _.keys(this.fields_view.fields);
        this.grouped = undefined;<commit_msg>[REF] web_kanban: allow a custom limit defined in the arch<commit_after>odoo.define('web_kanban.KanbanView', function (require) {
"use strict";

var core = require('web.core');
var data = require('web.data');
var data_manager = require('web.data_manager');
var Model = require('web.DataModel');
var Dialog = require('web.Dialog');
var form_common = require('web.form_common');
var Pager = require('web.Pager');
var pyeval = require('web.pyeval');
var QWeb = require('web.QWeb');
var session = require('web.session');
var utils = require('web.utils');
var View = require('web.View');

var KanbanColumn = require('web_kanban.Column');
var quick_create = require('web_kanban.quick_create');
var KanbanRecord = require('web_kanban.Record');
var kanban_widgets = require('web_kanban.widgets');

var qweb = core.qweb;
var _lt = core._lt;
var _t = core._t;
var ColumnQuickCreate = quick_create.ColumnQuickCreate;
var fields_registry = kanban_widgets.registry;

var KanbanView = View.extend({
    accesskey: "k",
    className: "o_kanban_view",
    custom_events: {
        'kanban_record_open': 'open_record',
        'kanban_record_edit': 'edit_record',
        'kanban_record_delete': 'delete_record',
        'kanban_do_action': 'open_action',
        'kanban_reload': 'do_reload',
        'kanban_column_resequence': function (event) {
            this.resequence_column(event.target);
        },
        'kanban_record_update': 'update_record',
        'kanban_column_add_record': 'add_record_to_column',
        'kanban_column_delete': 'delete_column',
        'kanban_column_archive_records': 'archive_records',
        'column_add_record': 'column_add_record',
        'quick_create_add_column': 'add_new_column',
        'kanban_load_more': 'load_more',
        'kanban_call_method': 'call_method',
    },
    defaults: _.extend(View.prototype.defaults, {
        quick_creatable: true,
        creatable: true,
        create_text: undefined,
        read_only_mode: false,
        confirm_on_delete: true,
    }),
    display_name: _lt("Kanban"),
    icon: 'fa-th-large',
    mobile_friendly: true,

    init: function () {
        this._super.apply(this, arguments);

        this.qweb = new QWeb(session.debug, {_s: session.origin});

        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;
{'fraction_non_alphanumeric': 0.13817427385892117, 'fraction_numerical': 0.0012448132780082987, 'mean_word_length': 3.835506519558676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '666374', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1531, 'n_words': 292}