Skip to content

[18.0][FIX] spreadsheet_oca: Dropdown props in the control panel - #148

Open
mileo wants to merge 1 commit into
OCA:18.0from
kmee:18.0-fix-spreadsheet_oca-dropdown-props
Open

mileo wants to merge 1 commit into
OCA:18.0from
kmee:18.0-fix-spreadsheet_oca-dropdown-props

Conversation

@mileo

@mileo mileo commented Nov 18, 2026

Copy link
Copy Markdown
Member

The control panel template still uses the Odoo 17 Dropdown API (togglerClass prop and toggler slot).

In debug mode, where Owl validates props, opening a spreadsheet when the breadcrumbs are collapsed (three levels or more) fails with:

Invalid props for component 'Dropdown': unknown key 'togglerClass', 'slots' doesn't have the correct shape (unknown key 'toggler')

and the action manager goes back to the previous view. Without debug mode the props are not validated, so the error goes unnoticed.

#112 fixed the missing components of SpreadsheetControlPanel; this one updates the two Dropdown usages of the template to the Odoo 18 API, as done in web.Breadcrumbs and web.ControlPanel.

To reproduce: with ?debug=1, open a spreadsheet from an action that already has two breadcrumbs.

The control panel template still used the Odoo 17 Dropdown API
(togglerClass prop and toggler slot). In debug mode, where Owl
validates props, opening a spreadsheet with collapsed breadcrumbs
raised "Invalid props for component 'Dropdown'" and the spreadsheet
could not be opened.

Assisted-by: Claude Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants