From acf222be06385f8ee0f1aef1bab1fc042330eb10 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Mon, 6 Sep 2021 21:10:14 +0000 Subject: [PATCH] [FIX] project: project_graph and project_pivot components During the refactoring of the project_graph and project_pivot views, their static key "components" were incorectly set making impossible for OWL to render them. This is now fixed. closes odoo/odoo#76065 Related: odoo/enterprise#20647 Signed-off-by: Aaron Bohy (aab) --- addons/project/static/src/js/project_graph_view.js | 2 +- addons/project/static/src/js/project_pivot_view.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project/static/src/js/project_graph_view.js b/addons/project/static/src/js/project_graph_view.js index d7d711aafd4..40cf831393f 100644 --- a/addons/project/static/src/js/project_graph_view.js +++ b/addons/project/static/src/js/project_graph_view.js @@ -7,6 +7,6 @@ import { registry } from "@web/core/registry"; const viewRegistry = registry.category("views"); class ProjectGraphView extends GraphView {} -ProjectGraphView.components = { ...GraphView, ControlPanel: ProjectControlPanel }; +ProjectGraphView.components = { ...GraphView.components, ControlPanel: ProjectControlPanel }; viewRegistry.add("project_graph", ProjectGraphView); diff --git a/addons/project/static/src/js/project_pivot_view.js b/addons/project/static/src/js/project_pivot_view.js index c5f71c95222..2a28361e861 100644 --- a/addons/project/static/src/js/project_pivot_view.js +++ b/addons/project/static/src/js/project_pivot_view.js @@ -7,6 +7,6 @@ import { registry } from "@web/core/registry"; const viewRegistry = registry.category("views"); class ProjectPivotView extends PivotView {} -ProjectPivotView.components = { ...PivotView, ControlPanel: ProjectControlPanel }; +ProjectPivotView.components = { ...PivotView.components, ControlPanel: ProjectControlPanel }; viewRegistry.add("project_pivot", ProjectPivotView);