Skip to content

[19.0][FIX] spreadsheet_oca: fix breadcrumbs Owl error - #126

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
arielbarreiros96:19.0-fix-spreadsheet_oca-breadcrumbs
Jul 28, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:19.0from
arielbarreiros96:19.0-fix-spreadsheet_oca-breadcrumbs

Conversation

@arielbarreiros96

Copy link
Copy Markdown

This PR is basically a cherry-pick of #112 , which solves the problem on #124 for v19, since #112 fixes the issue on v18

The solution itlself is really simple

…lPanel

SpreadsheetControlPanel extends ControlPanel but overrides
its static components property, losing Dropdown and
DropdownItem that the parent template uses.

This causes "Cannot find the definition of component
Dropdown" when opening a spreadsheet from certain
navigation paths (e.g. from a form view).

Fix: spread parent components before adding custom ones.
@arielbarreiros96

Copy link
Copy Markdown
Author

@nericervin a check on this is appreciated, is basically the same commit, just on 19.0 branch

@arielbarreiros96 arielbarreiros96 changed the title [FIX] spreadsheet_oca: fix breadcrumbs Owl error [19.0][FIX] spreadsheet_oca: fix breadcrumbs Owl error Jul 28, 2026

@nericervin nericervin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked it. Confirmed the same root cause is present on 19.0: SpreadsheetControlPanel.components overrides the parent's without spreading it, while props right above it already did ...ControlPanel.props.

On 19.0 ControlPanel.components declares Pager, SearchBar, Dropdown, DropdownItem, Breadcrumbs, AccordionItem, CheckBox, Transition, and our own spreadsheet_oca.SpreadsheetControlPanel template instantiates Pager, Dropdown and DropdownItem — so all three were undefined, not just the dropdowns.

I also swept the rest of the module for the same pattern: every other place that sets .components on an inherited class (SpreadsheetListController, and the chart config panels in chart_panels.esm.js) already spreads the parent, so this was the last one left.

The diff is identical to #112 and the fix is forward-compatible: if the parent's component set changes again, the spread picks it up. LGTM.

Thanks for taking care of the v19 backport 👍

@pedrobaeza pedrobaeza added this to the 19.0 milestone Jul 28, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-126-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 9e80796 into OCA:19.0 Jul 28, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 68550ca. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants