Event OCA Days 2025 - Liège starts on September 15, 2025 at 8:30:00 AM +0200
11:00 - 11:30 - Trying to Improve the Developer Experience by Generating Typing Classes for Odoo Models
Technical
Set Favorite
Location: Mosane Rooms n° 5+6 - 9/16/25, 11:00 AM - 9/16/25, 11:30 AM (+0200) (30 minutes)

11:00 - 11:30 - Trying to Improve the Developer Experience by Generating Typing Classes for Odoo Models
Alexandre Galdeano alexandre.galdeano@gmail.com +33625861950

Lead Developer at Foodles, responsible for developing and maintaining custom Odoo modules related to stocks and logistics with occasional contributions to the OCA. Previous experience includes SaaS development in the healthcare and AI music industries, as well as R&D in social robotics.


The way inheritance works in Odoo is very powerful but messes up with the IDE's ability to statically analyze which fields and functions are available to a given record in a given module. To improve the developer experience, I have developed a script that automatically generates all the typing classes for all Odoo models based on the module's dependency tree. These can then be used as type hints to help the IDE suggest which fields and functions are available for the specific record in this specific module.

I will present how this script works, its pros, its limitations, and future plans.