Saturday, June 14, 2025
4 changes · 18.0
Resolved issues and error corrections
If a replica database connection fails, workers now periodically try to reconnect instead of staying on the primary database until they are recycled. This helps restore normal database load distribution within about 20 minutes after a temporary replica issue, reducing prolonged performance degradation.
Original PR description
When the connection to the replica database fails, the worker failover to the primary database and keeps on connecting to the primary database until the worker is recycled. This makes any hicups to the replica connection degrades the system for a very long time, as workers are only recycled once/twice a week. In this work, we makes so it attempts to reconnect to the replica database once every 20 minutes. This makes to the system recovers more quickly. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixed an accounting issue where payments created without a linked journal entry could show the company-currency amount with the wrong positive or negative sign. This helps ensure payment totals are reported consistently and reduces the risk of confusing accounting figures.
Original PR description
Issue: field `amount_company_currency_signed` does not have the correct sign when the payment is created without an associated move It occurs because we convert the `amount` but we should use the `amount_signed` opw-4656807
Users can now switch from a custom paper size to another paper size without first clearing the page height and width fields. This removes an unnecessary warning and preserves custom dimensions for users who may want to switch back later.
Original PR description
Description of the issue/feature this PR addresses: When you set a `custom` Paper size, you can't swap to another one without setting the `Page height (mm)` and `Page width (mm)` to 0 just to swap it again, this could be just skiped since the paperformat uses the computed fields made on `_compute_print_page_size` to get the proper height and width. Current behavior before PR: This happens when you swap Paper size from `custom` to any other.  Desired behavior after PR is merged: After deleting this validation, should swap without this popup, and we could save the original values if the user wants to swap again to custom format. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where payment amounts could appear with the wrong positive or negative sign during bank reconciliation for batch payments. Businesses get clearer, more reliable accounting information and reduce the risk of confusion when matching bank transactions.
Original PR description
Enterprise part of https://github.com/odoo/odoo/pull/213653 opw-4656807