Daily updates from Odoo
Thursday, June 16, 2022
2 changes · master
Code cleanup and technical improvements
The Documents Spreadsheet area now counts available spreadsheets using a more efficient database method. This reduces unnecessary data loading and network traffic, which can improve responsiveness when many spreadsheets exist.
Original PR description
`search_count` is more efficient since it's done at SQL level (`SELECT COUNT (*) ...`) `search_read` will fetch in memory every row matching the domain (and over the network here)
Spreadsheet display assets are being separated from the Documents app so dashboards can show spreadsheets without requiring Documents. Editing tools remain tied to Documents, while read-only dashboard viewing can load only the lighter spreadsheet components when needed.
Original PR description
This task is a first step towards dashboards with spreadsheet. As the dashboards should be accessible without Documents, we have to extract the minimal assets required to display a spreadsheet in dashboard mode. In dashboard mode, the "model" part of the features pivots, lists, link, chart, ... are necessary, but the "ui" part (i.e. the edition of charts, insertion of pivot, lists, link) should be only available with Documents. Thus, a new module is introduced: `spreadsheet`. It contains only static files that will be lazy loaded when the first time a spreadsheet is displayed. Part of task-id 2799682 Co-authored-by: Lucas Lefèvre <lul@odoo.com> Co-authored-by: Pierre Rousseau <pro@odoo.com>