Skip to content

[FIX] spreadsheet_oca: 19.0 empty ListView.Buttons breaks Spreadsheets list (OwlError)#4

Open
dnplkndll wants to merge 1 commit into
19.0-spreadsheet-pr109-basefrom
19.0-fix-spreadsheet_oca-listview-buttons
Open

[FIX] spreadsheet_oca: 19.0 empty ListView.Buttons breaks Spreadsheets list (OwlError)#4
dnplkndll wants to merge 1 commit into
19.0-spreadsheet-pr109-basefrom
19.0-fix-spreadsheet_oca-listview-buttons

Conversation

@dnplkndll

Copy link
Copy Markdown

Fix on top of OCA#109.

Problem

Opening the Spreadsheets list view (spreadsheet.spreadsheet) throws an OWL lifecycle error on 19.0:
Element '<xpath expr="//div[hasclass('o_list_buttons')]" …>' cannot be located in element tree.
19.0 core emptied web.ListView.Buttons (now <t t-name="web.ListView.Buttons"/>, same as web.KanbanView.Buttons), so the module's xpath into o_list_buttons resolves to nothing. Browser-only — Python CI never renders the view, so it stays green.

Fix

One line: target the template root with expr="." position="inside" — the exact pattern 19.0 core hr_expense/data_recycle use to add buttons to the emptied ListView.Buttons.

Verified on a 19.0 instance: Spreadsheets list renders, the Upload button appears next to New, no OWL error.

19.0 core emptied the web.ListView.Buttons template (now self-closing, like
web.KanbanView.Buttons), so the xpath //div[hasclass('o_list_buttons')]
resolves to nothing and OWL throws at render of the Spreadsheets list view.
Target the template root (expr="." position="inside") — the pattern core
hr_expense/data_recycle use to add buttons to the emptied template.
Browser-only failure; Python CI stays green.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant