Saturday, August 23, 2025
1 change · saas-18.4
Resolved issues and error corrections
This update prevents warning messages caused by newer Python documentation libraries while keeping compatibility with older versions. It is a low-risk internal fix that helps keep Odoo stable across supported environments.
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