Daily updates from Odoo
Saturday, July 19, 2025
3 changes
Code cleanup and technical improvements
The pull request updates the way Odoo stores and reuses data from background server requests, making the cache more flexible and easier to maintain. This should help keep screens responsive while reducing unnecessary data loading, with no expected change to everyday workflows.
Original PR description
This commit refactors and improves the RPC cache API.
- Changes the API for RPC and ORM from `cached` to `cache`;
- Renames and relocates the class `PersistentCache` to `RPCCache`. This class
contains all the relevant logic for the RPC cache (disk and ram);
- Changes the name of the parameter `onFinish` to `callback`;
- Allows the `RPCCache` to be used only with RAM cache (non-persistent);
- Introduces two parameters :
* `type`: to indicate whether the cache is `disk` or `ram` only;
* `update`: to indicate the frequency of the RPC calls:
- `once`: the RPC will be called once and store the result on the
ram. If the cache is disk, the IndexedDB value will return
the cached value, after which the RPC will be called;
- `always`: The RPC will be called each time.
task-id : 4935956The internal folder layout for website tour-related files has been reorganized to better match the main web module structure. This makes the codebase easier for developers to navigate and maintain, with no expected change for end users.
Original PR description
Currently, all files related to the tour system are located in a folder named tour_service. To make the file structure more consistent in the web_tour addon, we've created a structure similar to what's in /web.
Unused spreadsheet templates were removed, and version history files were reorganized into a dedicated folder. This is an internal cleanup that makes the spreadsheet edition code easier to maintain without changing day-to-day user behavior.
Original PR description
This commit cleans templates that are no longer used and also moves all version history related file into their own folder.