Skip to Content

Odoo 19 - Python Framework: What's New in V19

Written by Thibault Paillon
October 1, 2025 by
Odoo 19 - Python Framework: What's New in V19
Emma Lenaerts (ele)

Boost Your Development with Odoo V19

Discover the major new features of Odoo's Python Framework, announced at Odoo Experience 2025. These improvements focus on performance, developer experience, and code reliability, with notable optimizations in domain management, the ORM, CRON job management, as well as significant gains in installation and update times.


What’s New in Python Framework ? 

Odoo Experience 2025 has concluded, bringing many interesting conferences about the new features of V19. 

During the OXP, several significant improvements to Odoo's Python framework were announced, focusing on performance, developer experience, and code reliability. 


Domain Improvements

One of the most notable updates concerns domain management. Developers can now create domain objects programmatically, making complex filtering logic easier to maintain. The framework includes better validation to detect errors earlier, and the underlying implementation allows for simpler SQL queries thanks to improved domain filtering mechanisms.

New features include support for dynamic dates and a compute_sudo=True parameter to bypass access rights issues for internal operations when appropriate.

ORM Improvements

The ORM layer has been significantly optimized, generating better SQL queries overall. The API for constraints and indexes has been refined with new methods models.Constraint() and models.Index(), offering clearer and more maintainable code.

API changes affect field access models, with a cleanup of config.py and the ability to fetch fields using prefetch=True. Field caching and associated methods have been improved, contributing to overall performance gains. Additionally, the compilation of QWeb templates is now significantly faster.

Installation and Update Performanceour

The module loading process has been restructured so that models are configured in the registry after each module load, rather than in batches. This architectural change results in impressive results: installation times are 30-50% faster, while update times see a 50% improvement.

Ces gains de performance rendent les projets de migration Odoo vers la V19 encore plus attractifs, en réduisant significativement les fenêtres d'intervention technique et les risques de rupture de service.

CRON Job Management

CRON jobs benefit from a new progress API for better tracking. The system now automatically disables CRON jobs that repeatedly fail, preventing them from consuming resources indefinitely. Jobs now run in shorter cycles, with one transaction per execution, improving reliability and making debugging easier.

These updates represent a continued focus on performance and developer productivity within the Odoo ecosystem.

Learn more about the author of the article :

Thibault Paillon

Developer

Thibault has been a developer at Nalios Wallonie for 7 months. With his background as a graphic designer, he loves taking care of your needs in interface changes or custom reports tailored to your business logic.

Commencez à écrire ici ...