Skip to content
Snippets Groups Projects
project.js 442 B
Newer Older
Rémi - Le Filament's avatar
Rémi - Le Filament committed
odoo.define("adefpat_project.update_kanban", function (require) {
    "use strict";
Rémi - Le Filament's avatar
Rémi - Le Filament committed
    var KanbanRecord = require("web_kanban.Record");

    KanbanRecord.include({
        _openRecord: function () {
Rémi - Le Filament's avatar
Rémi - Le Filament committed
            if (this.modelName === "project.project") {
                this.$(".o_kanban_card_manage_section a").first().click();
            } else {
                this._super.apply(this, arguments);
            }
        },
    });
Rémi - Le Filament's avatar
Rémi - Le Filament committed
});