Monday, January 20, 2025
1 change · saas-18.1
Resolved issues and error corrections
This fixes how Odoo detects whether a read-only database replica is configured after a recent configuration change. It prevents the system from mistakenly using a read-only database connection when no replica host is actually set, reducing the risk of failed or incorrect operations.
Original PR description
Following the configuration refactor[1], the falsy evaluation of db_replica_host was wrong. The default is now an empty string. This lead to situations where a readonly cursor was wrongfully used. [1] https://github.com/odoo/odoo/commit/b1f7be518e2075c546bcedc0f4ba6dd62dff3c8f --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr