Daily updates from Odoo
Tuesday, April 12, 2022
2 changes
Code cleanup and technical improvements
The spreadsheet document functionality has been consolidated back into one module to simplify how it is maintained. This reduces internal complexity and should make future additions, including accounting-related features, easier and safer to deliver.
Original PR description
The Split between the 2 modules (`documents_spreadsheet`, `documents_spreadsheet_bundle`) was introduced for clarify the split of lazy loaded files from the other files. There are 2 issues introduced with this split: 1. it introduced some weird dependency map between the modules: `documents_spreadsheet_bundle` depends on `documents_spreadsheet` even though the latter cannot work without the former. 2. The split is not that clear and is somewhat faulty: some code that can be lazy loaded is in `documents_sreapdsheets` - some templates are separated from the compnent definition file We are now adding features that will depend on Accounting and the dependency mapping will be even more complicated. All-in-all, it seems like it's not really necessary and we can split the files in different folders inside a single module. Task 2809220
This update simplifies internal filtering rules used across several Odoo business modules. It keeps behavior the same while making queries easier to maintain and less likely to cause future issues.