From a82f7384e83fc0162907661cc0ab88ef9a922119 Mon Sep 17 00:00:00 2001 From: christian-ramos-tecnativa Date: Fri, 20 Feb 2026 13:23:20 +0000 Subject: [PATCH] [FIX] spreadsheet_oca: fix patch to apply setup correctly --- .../src/spreadsheet/bundle/chart_panels.esm.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 e42f6706..2142fa57 100644 --- a/spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js +++ b/spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js @@ -13,7 +13,7 @@ const { GaugeChartConfigPanel, } = spreadsheet.components; -const menuChartProps = { +const menuChartProps = () => ({ setup() { super.setup(...arguments); this.menus = useService("menu"); @@ -76,33 +76,33 @@ const menuChartProps = { }, }; }, -}; +}); -patch(GenericChartConfigPanel.prototype, menuChartProps); +patch(GenericChartConfigPanel.prototype, menuChartProps()); GenericChartConfigPanel.components = { ...GenericChartConfigPanel.components, Many2XAutocomplete, }; -patch(LineConfigPanel.prototype, menuChartProps); +patch(LineConfigPanel.prototype, menuChartProps()); LineConfigPanel.components = { ...LineConfigPanel.components, Many2XAutocomplete, }; -patch(BarConfigPanel.prototype, menuChartProps); +patch(BarConfigPanel.prototype, menuChartProps()); BarConfigPanel.components = { ...BarConfigPanel.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,