[IMP] document_page: add Browse Wiki Content view Kanban

This commit is contained in:
Kaynnan Lemes
2024-04-02 18:23:19 -03:00
committed by Justine Doutreloux
parent dcb85fe9e3
commit d0df693b95
4 changed files with 214 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
odoo.define("document_page.update_kanban", function (require) {
"use strict";
var KanbanRecord = require("web.KanbanRecord");
KanbanRecord.include({
// --------------------------------------------------------------------------
// Private
// --------------------------------------------------------------------------
/**
* @override
* @private
*/
_openRecord: function () {
if (
this.modelName === "document.page" &&
this.$(".o_document_page_kanban_boxes a").length
) {
this.$(".o_document_page_kanban_boxes a").first().click();
} else {
this._super.apply(this, arguments);
}
},
});
});