Thursday, March 12, 2026
5 changes · master
Code cleanup and technical improvements
This update improves the consistency and maintainability of our Python code across several key modules. A new tool, Ruff, has been implemented to automatically format and lint the code, ensuring a clean and standardized style. This will streamline future development and reduce potential errors.
Original PR description
*: `payment_sepa_direct_debit`, `sale_(stock_)renting`, `sale_(amazon,lazada,shopee)`, `website_sale_renting(_*)` This PR introduces Ruff (lint and format) as the standard for all Python files within the R&D Sales scope (see `*`). The goal is to ensure a clean state for future development, reviews, and debugging by enforcing a code style via pre-commit hooks. This PR applies a one-time bulk format+lint pass to all existing files in our scope. task-5436779 See also: - https://github.com/odoo/odoo/pull/237354 Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com> Co-authored-by: Valeriya (vchu) <vchu@odoo.com> Co-authored-by: Louis <loti@odoo.com> Co-authored-by: Victor Feyens <vfe@odoo.com> Co-authored-by: Lionel Piraux (lipi) <lipi@odoo.com> Co-authored-by: livaois <liew@odoo.com>
This update is a preparatory step for Odoo's OWL3 upgrade, which requires changes to how template variables reference components. The team has added `.this` to template variables to ensure compatibility with the new OWL3 rendering context. This ensures a smooth transition to the next Odoo version.
Original PR description
In preparation for OWL3, where template variables will need to use `.this` to target component variables, we add `.this` to template variables that are targeting the component. Script PR: odoo/odoo#247965 task: OWL3 prep - add this. to template variables
This update prepares our Odoo system for OWL3 by modifying template variables to correctly target component elements using `.this`. This is a necessary step to ensure compatibility with the upcoming OWL3 rendering engine and avoid potential display issues.
Original PR description
In preparation for OWL3, where template variables will need to use `.this` to target component variables, we add `.this` to template variables that are targeting the component. Script PR: odoo/odoo#247965 *targets: ["web_gantt", "web_grid", "web_hierarchy"] task: OWL3 prep - add this. to template variables
This update adds `this.` to template variables within several Odoo modules to align with upcoming OWL3 rendering changes. This preparatory step ensures compatibility and avoids potential issues when the new OWL3 rendering context is fully implemented, streamlining the transition.
Original PR description
In preparation for OWL3, where template variables will need to use `this.` to target component variables, we add `this.` to template variables that are targetting the component. Script PR: odoo/odoo#247965 task: OWL3 prep - add this. to template variables
This update modifies Odoo's templates to align with upcoming OWL3 requirements. Specifically, it adds `.this` to template variables that target component data, ensuring compatibility with the new OWL3 framework. This proactive step avoids potential issues when transitioning to the new OWL3 environment.
Original PR description
In preparation for OWL3, where template variables will need to use `.this` to target component variables, we add `.this` to template variables that are targetting the component. Script PR: https://github.com/odoo/odoo/pull/247965 THIS_TARGETS = ['stock'] task: OWL3 prep - add `this.` to template variables Community PR : https://github.com/odoo/odoo/pull/253047