Daily updates from Odoo
Thursday, June 23, 2022
2 changes
Code cleanup and technical improvements
Spreadsheet-related side panels now fetch model display names only when a user opens the parts of the interface that need them. This reduces unnecessary loading and keeps special access workarounds limited to the Documents Spreadsheet area, supporting future modular changes with lower risk.
Original PR description
Currently, the model display name (ir.model) is loaded as soon as the the datasource is loaded. It's an issue because: - it's only needed in some parts of the UI (side panels). Hence loading it if the user never opens those side panel is a waste of resources - reading on ir.model is actually not possible by default (ACLs are restricted). We have custom hacky overrides to allow it (see 0e5603b). Recently, we moved data sources in a new module `spreadsheet` (see 45612ba) but overrides were left in the `documents_spreadsheet`. It's actually currently not a real issue because `spreadsheet` is installed iff `documents_spreadsheet` is also installed. However, it soon won't be true anymore. We don't want to move the overrides to the `spreadsheet` module because it will be installed on much more databases. We want to keep those hacks with the minimum scope as possible
Odoo-specific spreadsheet formulas are now prefixed with “ODOO” so users can more easily tell them apart from standard spreadsheet functions. This makes formulas clearer to read and helps reduce confusion when working with document spreadsheets, lists, pivots, and filters.
Original PR description
In order to easily distinguish odoo functions with spreadsheet functions, we prefix the odoo functions with the keyword "ODOO" Task-id 2824568