Odoo upgrade guide
Odoo 18 to 19: what breaks in your custom modules
Odoo 19 renamed groups_id to group_ids on users, views, menus and actions, and stopped creating SQL constraints declared with _sql_constraints. The first change breaks installation. The second breaks nothing visible: the constraint is simply gone.
Odoo's upgrade service migrates your data and the standard modules. Custom modules, and third-party modules from the Apps Store, are yours to port. This page lists every change we know of between 18.0 and 19.0 that affects them. Each one was checked in the official Odoo sources of version 19.0.
How often it happens, in Odoo's own code
We ran these checks on the 688 standard modules of Odoo 18.0 Community, before Odoo ported them. It shows which changes cost the most. Your modules follow the same patterns.
| Change | Occurrences | Modules |
|---|---|---|
| self._cr, self._uid, self._context | 925 | 107 |
| @route(type='json') | 408 | 84 |
| groups_id renamed group_ids | 263 | 56 |
| _sql_constraints ignored | 224 | 95 |
| Access and cache helpers deprecated in 19.0 | 62 | 26 |
| read_group() deprecated | 29 | 17 |
Every change, with the fix
Blocking the module fails to install or upgrade, or the code raises an error
- groups_id renamed group_ids. On res.users, ir.ui.view, ir.ui.menu and actions, use group_ids (and all_group_ids for implied groups on users).
- clear_caches() removed. Use self.env.registry.clear_cache().
Silent no error, but the behaviour is lost
- _sql_constraints ignored. Declare each constraint as _name = models.Constraint(...).
To watch deprecated, still working, will break in a later version
- self._cr, self._uid, self._context. Use self.env.cr, self.env.uid and self.env.context.
- @route(type='json'). Use type='jsonrpc'.
- Access and cache helpers deprecated in 19.0. check_access_rights/check_access_rule → check_access; toggle_active → action_archive/action_unarchive; ormcache_context → ormcache reading self.env.context.
- read_group() deprecated. Use _read_group() in Python, formatted_read_group() for the web client.
Check your own modules
Upgrade Readiness is a free module on the Odoo Apps Store. Install it on your 18.0 database: it reads the source code of your custom modules and your Studio changes, and lists each of these issues with the file, the line and an effort estimate in hours. The analysis runs inside your database and nothing is sent anywhere.
Upgrade Readiness for Odoo 18.0 on the Apps Store
Prefer not to do the port yourself? We port your custom modules and deliver a tested pull request.
Other versions
- Odoo 16 to 17: what breaks in your custom modules
- Odoo 17 to 18: what breaks in your custom modules
- Odoo 19 to 20: what breaks in your custom modules
Independent guide by Mahjoubi Jalel, not affiliated with or endorsed by Odoo S.A. Odoo is a trademark of Odoo S.A. A mistake or a missing change: support@assetguard.fr.