22 lines
762 B
JavaScript
22 lines
762 B
JavaScript
/** @odoo-module */
|
|
|
|
import {KanbanController} from "@web/views/kanban/kanban_controller";
|
|
import {kanbanView} from "@web/views/kanban/kanban_view";
|
|
import {registry} from "@web/core/registry";
|
|
|
|
// the controller usually contains the Layout and the renderer.
|
|
class CustomKanbanController extends KanbanController {
|
|
// Your logic here, override or insert new methods...
|
|
// if you override setup(), don't forget to call super.setup()
|
|
}
|
|
|
|
CustomKanbanController.template = "sf_warehouse.CustomKanbanView";
|
|
|
|
export const customKanbanView = {
|
|
...kanbanView, // contains the default Renderer/Controller/Model
|
|
Controller: CustomKanbanController,
|
|
};
|
|
|
|
// Register it to the views registry
|
|
registry.category("views").add("custom_kanban", customKanbanView);
|