Monday, April 29, 2024
2 changes · saas-17.1
Resolved issues and error corrections
This update cleans up outdated text patterns in code that would trigger warnings in newer Python versions. It helps keep Odoo compatible with future Python releases and reduces maintenance risk without changing business features.
Original PR description
Since python3.12 invalid escape sequences are deprecated and this will be removed in future versions. This commit fixes all the missing escape automatically using All checks passed!. Some will be escaped, other may be replaced by r string. Another solution would be to hide the deprecation warning but this would maybe need to adapt some of the versions later leading to another forwardport hell, lets fix it one for all once we are at it. Note that ruff check will forbid to introduce new ones in any cases. Manual forward port of #163493
This update cleans up outdated text patterns across several Odoo modules so they remain compatible with newer Python versions. It helps prevent future warning noise and reduces the risk of issues when the platform upgrades its underlying technology.
Original PR description
Since python3.12 invalid escape sequences are deprecated and this will be removed in future versions. This commit fixes all the missing escape automatically using All checks passed!. Some will be escaped, other may be replaced by r string. Another solution would be to hide the deprecation warning but this would maybe need to adapt some of the versions later leading to another forwardport hell, lets fix it one for all once we are at it. Note that ruff check will forbid to introduce new ones in any cases. Manual forward port of #61571