IMP: Add single menu for content browsing

* Categories and content are now available and browsable in a single menu.
* Navigation helps user to find content easily
* Cleanups for pylint and flake
This commit is contained in:
Florent THOMAS
2022-02-10 23:41:48 +01:00
parent 25ca012afc
commit 8db04e2e12
8 changed files with 398 additions and 201 deletions

View File

@@ -0,0 +1,28 @@
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);
}
}
});
});