summaryrefslogtreecommitdiff
path: root/addons/mrp/static/src/js/mrp_documents_kanban_controller.js
blob: 9a123dfb9705360f0a2fcadee918eb22e01db1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
odoo.define('mrp.MrpDocumentsKanbanController', function (require) {
"use strict";

/**
 * This file defines the Controller for the MRP Documents Kanban view, which is an
 * override of the KanbanController.
 */

const MrpDocumentsControllerMixin = require('mrp.controllerMixin');

const KanbanController = require('web.KanbanController');

const MrpDocumentsKanbanController = KanbanController.extend(MrpDocumentsControllerMixin, {
    events: Object.assign({}, KanbanController.prototype.events, MrpDocumentsControllerMixin.events),
    custom_events: Object.assign({}, KanbanController.prototype.custom_events, MrpDocumentsControllerMixin.custom_events),

    /**
     * @override
    */
    init() {
        this._super(...arguments);
        MrpDocumentsControllerMixin.init.apply(this, arguments);
    },
    /**
     * Override to update the records selection.
     *
     * @override
    */
    async reload() {
        await this._super(...arguments);
        await MrpDocumentsControllerMixin.reload.apply(this, arguments);
    },
});

return MrpDocumentsKanbanController;

});