[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) <aab@odoo.com>
This commit is contained in:
Mathieu Duckerts-Antoine
2021-09-07 15:50:14 +00:00
committed by Aaron Bohy
parent 7545913020
commit acf222be06
2 changed files with 2 additions and 2 deletions
@@ -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);
@@ -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);