Daily updates from Odoo
Saturday, August 23, 2025
4 changes · saas-18.3
Resolved issues and error corrections
The employee organization chart now handles records with more than five managers correctly. It also refreshes before an employee record is saved, helping users see accurate reporting relationships sooner.
Original PR description
A buggy behavior when there are more than 5 managers was fixed. The org chart now updates before the employee record is saved. task-4609465 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#223655 Forward-Port-Of: odoo/odoo#216940
Invoices now validate that manually entered currency rates are positive, preventing save errors when a rate is set to zero. A safe default rate is also applied when needed, improving reliability for multi-currency invoicing.
Original PR description
Currently, an error occurs when a user tries to save an invoice with a currency rate of 0. Steps to reproduce: - Install `Invoicing` and enable at least 2 currencies. - Open an Invoice and change…
Currently, an error occurs when a user tries to save an invoice with a currency rate of 0. Steps to reproduce: - Install `Invoicing` and enable at least 2 currencies. - Open an Invoice and change currency to something other than USD. - Now change the currency rate displayed to 0 and save. Error: `ZeroDivisionError: float division by zero` Cause: - Error occurs due to a recent [feature](https://github.com/odoo/odoo/pull/214308) that allows changing currency rate. - Error occurred because the user set the currency rate to `0`, and line [1] attempted a division by zero, resulting in the error. Solution: - Added a constraint that restricts the currency rate and raise validation. - Added a default value for the currency rate in cases where the rate might be 0. [1]: https://github.com/odoo/odoo/blob/698e71b3a5b35fec5c7a27f2487df0e368c541b3/addons/account/models/account_move_line.py#L1505 sentry-6762861372,6787738443 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#220833
This update keeps Odoo compatible with newer Python document-processing libraries while still supporting older versions. It prevents unnecessary warning messages during module information handling, reducing maintenance noise without changing user-facing behavior.
Original PR description
Odoo 17.0 supports Python ≥3.11, which installs docutils==0.20.1. This version deprecates `Node.traverse()` in favor of `Node.findall()`. To avoid deprecation warnings and ensure compatibility with both docutils 0.17 and 0.20.1, this patch uses `findall()` if available and falls back to `traverse()` otherwise. This change is backward-compatible and safe to cherry-pick to >= 18.0. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#222000
Payroll advice reports for India now use the selected payslip dates instead of the current date to determine the payroll period. This prevents incorrect or missing period information when generating advice for past payroll runs.
Original PR description
Generating a payroll advice would use the current date in order to find other payslips that are for the current period and use this to fill in the period on the advice. However, if you do this for a past payslip, it will either not find any or get the incorrect period. Changed the behavior to use the actual payslips and get the period from those payslips to fill in the period on the report. opw-4582990 Forward-Port-Of: odoo/enterprise#92806 Forward-Port-Of: odoo/enterprise#81625