Monday, November 27, 2023
1 change
Code cleanup and technical improvements
Spreadsheet list and pivot side panels were reorganized to pass the selected item directly instead of storing it through internal commands. This reduces unnecessary internal state and makes the spreadsheet interface easier to maintain, with no intended change to end-user workflows.
Original PR description
There was `SELECT_ODOO_LIST` command that had the list UI plugin store a list id, which could then be fetched with the getter `getSelectedListId`. The getter was only used once (outside the tests): to display the correct list in the list side panel. But this is not even useful, as we can just give the correct list as a props of the side panel. This commit removes the `SELECT_ODOO_LIST` command and its corresponding getter. It also refactor the list side panel, now there is two distinct side panels (one for the list of lists, one for the details). This avoids having to manage a state to determine which list should be displayed. Also take the occasion to remove some left-over JQuery and legacy test utils in the tests. Same stuff for Pivots Task: [3557655](https://www.odoo.com/web#id=3557655&cids=1&model=project.task&view_type=form)