From a53c9ef30b0a90ebc5c997bf54eb73567dc12329 Mon Sep 17 00:00:00 2001 From: christian-ramos-tecnativa Date: Fri, 20 Feb 2026 13:29:37 +0000 Subject: [PATCH] [FIX] spreadsheet_oca: fix patch to apply setup correctly --- .../static/src/spreadsheet/bundle/chart_panels.esm.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js b/spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js index 47f60691..a9b88617 100644 --- a/spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js +++ b/spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js @@ -14,7 +14,7 @@ const { GaugeChartConfigPanel, } = spreadsheet.components; -const menuChartProps = { +const menuChartProps = () => ({ setup() { super.setup(...arguments); this.menus = useService("menu"); @@ -78,21 +78,21 @@ const menuChartProps = { }, }; }, -}; +}); -patch(LineBarPieConfigPanel.prototype, menuChartProps); +patch(LineBarPieConfigPanel.prototype, menuChartProps()); LineBarPieConfigPanel.components = { ...LineBarPieConfigPanel.components, Many2XAutocomplete, }; -patch(ScorecardChartConfigPanel.prototype, menuChartProps); +patch(ScorecardChartConfigPanel.prototype, menuChartProps()); ScorecardChartConfigPanel.components = { ...ScorecardChartConfigPanel.components, Many2XAutocomplete, }; -patch(GaugeChartConfigPanel.prototype, menuChartProps); +patch(GaugeChartConfigPanel.prototype, menuChartProps()); GaugeChartConfigPanel.components = { ...GaugeChartConfigPanel.components, Many2XAutocomplete,