Odoo upgrade guide
Odoo 19 to 20: what breaks in your custom modules
Odoo 20 replaced ir.model.access and ir.rule with a single ir.access model, removed the access helpers deprecated in 19 and moved the web client to OWL 3. Every module that declares its own access rights is affected.
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 19.0 and 20.0 that affects them. Each one was checked in the official Odoo sources of version 20.0.
How often it happens, in Odoo's own code
We ran these checks on the 699 standard modules of Odoo 19.0 Community, before Odoo ported them. It shows which changes cost the most. Your modules follow the same patterns.
| Change | Occurrences | Modules |
|---|---|---|
| OWL components (OWL 3 in 20.0) | 1,342 | 135 |
| ir.model.access and ir.rule replaced by ir.access | 848 | 242 |
| type="base64" in data files | 828 | 63 |
| _rec_names_search as a list | 38 | 22 |
| Access helpers removed in 20.0 | 7 | 4 |
| Month/year range on date search filters | 3 | 2 |
Every change, with the fix
Blocking the module fails to install or upgrade, or the code raises an error
- ir.model.access and ir.rule replaced by ir.access. Rewrite security/ir.model.access.csv and record rules as security/ir.access.csv (id,name,model_id,group_id/id,operation,domain).
- Access helpers removed in 20.0. check_access_rights/check_access_rule → check_access; check_field_access_rights → check_field_access; toggle_active → action_archive/action_unarchive.
- Month/year range on date search filters. Remove start_month, end_month, start_year and end_year from <filter>.
To watch deprecated, still working, will break in a later version
- OWL components (OWL 3 in 20.0). Review the component and its templates for the OWL 3 changes (Odoo ships upgrade_code/owl3-migration.py).
- type="base64" in data files. Use type="bytes".
- _rec_names_search as a list. Use a tuple: _rec_names_search = ('name',).
Check your own modules
Upgrade Readiness is a free module on the Odoo Apps Store. Install it on your 19.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 19.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 18 to 19: 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.