Monday, July 28, 2025
1 change · 18.0
Enhancements to existing features
Odoo now keeps database time aligned with simulated application time during tests. This helps make time-based test results more realistic and reliable without affecting normal production use.
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#220632 Forward-Port-Of: odoo/odoo#219671