Saturday, July 26, 2025
1 change · 17.0
Enhancements to existing features
Odoo now better aligns database time with simulated application time during specialized test runs. This helps teams test date- and time-sensitive behavior more accurately without affecting 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#219671