Skip to Content
En cours de chargement de la vidéo...
Towards idiomatic Python with types for the Odoo ORM
Developer Community Talk
Lieu : Mezzanine 2000 - 14/10/2022 10:30 - 14/10/2022 11:00 (Europe/Brussels) (30 minutes)
Towards idiomatic Python with types for the Odoo ORM
Stéphane Bidoul
Founder and CTO à Acsone
Stéphane Bidoul
Founder and CTO à Acsone

Stéphane is a founding partner and CTO of ACSONE, a Software Engineering company dedicated to crafting high-quality solutions based on Open Source technologies. He is an elected board member of the Odoo Community Association and an active member of the Python Packaging Community.


The Odoo ORM is extremely powerful and perfectly adapted to the dynamic and modular nature of Odoo.

However, its approach to declaring fields and class inheritance makes it difficult to leverage the capabilities of modern Python IDEs and static code analysis tools. It also leads to code that can be hard to navigate and verify as the field and method argument types are often not expressed explicitly, and the code of base classes is hard to locate.

In this fireside conversation, we shall discuss how the Odoo ORM could evolve to take advantage of syntactic Python features such as native class inheritance and type annotation.

Such an approach would open the door to leveraging modern tooling such as IDEs (for code completion, navigation, cross-referencing, and refactoring), static type checking, and code documentation.

The talk will be supported by a small, fully functional, and backward compatible patch to the Odoo ORM.