Home › Curriculum › AI across Odoo roles › AI for Odoo developers
AI in every Odoo role · 16 min · Odoo 17–20AI for Odoo developers
Coding assistants for modules, reviews, tests and migrations, with guardrails that keep code correct and upgrade-safe.
In this lesson
- Generating code with context
- AI for review, explanation and migration
- Guardrails and typical AI mistakes in Odoo code
Key points
- Give the version, parent code and conventions; ask for small changes with tests
- AI review against a checklist; AI-drafted ports
- Prove with tests, pylint-odoo and a fresh install
- Watch for old APIs, copied core methods, missing access rights, invented fields
Real-world example
A developer asked an assistant for a 'credit block' module on Odoo 19. It generated @api.multi decorators, attrs in views and no ir.model.access.csv. Pasting the 19.0 parent view and asking for 'Odoo 19 syntax, tests and security' produced a clean module that passed tests after two small fixes.
Questions and answers
What should every new model have that AI often forgets?
Access rights in ir.model.access.csv.
Name two AI uses beyond generating code.
Code review, explaining core code, drafting migrations, writing tests.