Tuesday, July 29, 2025
3 changes · saas-18.2
Enhancements to existing features
Odoo’s test setup now keeps database time aligned with simulated application time when special testing settings are used. This makes automated tests that depend on dates and times more accurate, while skipping a few tests that are not compatible with simulated time.
Original PR description
[IMP] sql_db: replace now to reflect the time offset When using the faketime lib to test Odoo, only the Odoo processes are affected, so it does not reproduce the reality. With this commit, when an environment variable `ODOO_FAKETIME_MODE` is set, the cursor `now` function is altered the same way faketime alters the Odoo processes. See https://github.com/wolfcw/libfaketime Forward-Port-Of: odoo/odoo#220703 Forward-Port-Of: odoo/odoo#219671
The Discuss test suite now skips peer-to-peer call tests when no network is available. This prevents false test failures in offline environments, helping development and release checks stay reliable without changing customer-facing behavior.
Original PR description
This commit adds a skip to peerToPeer tests for when there is no network as the webRTC API needs to have at least a local network to generate ICE candidates. Forward-Port-Of: odoo/odoo#220093 Forward-Port-Of: odoo/odoo#219587
Users can no longer trigger multiple bank transaction fetches by repeatedly clicking the Fetch Transactions button. This reduces duplicate provider calls and helps avoid errors during bank synchronization.
Original PR description
The button `Fetch Transactions` shown on a bank in the accounting dashboard can possibly be clicked multiple times in a row by a user. This would cause several calls to the provider causing potential errors. This commit prevents the user from being able to fetch transactions multiple times by removing this button once clicked. task-4900188 Forward-Port-Of: odoo/enterprise#89127