Odoo upgrade guide
Odoo 17 to 18: what breaks in your custom modules
Odoo 18 renamed the tree view to list everywhere: in views, in actions, in Python and in contexts. A search-and-replace on the tag fixes the views but misses the other places, which fail only when a user opens the action.
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 17.0 and 18.0 that affects them. Each one was checked in the official Odoo sources of version 18.0.
How often it happens, in Odoo's own code
We ran these checks on the 641 standard modules of Odoo 17.0 Community, before Odoo ported them. It shows which changes cost the most. Your modules follow the same patterns.
| Change | Occurrences | Modules |
|---|---|---|
| "tree" views renamed "list" | 1,621 | 182 |
| user_has_groups() removed | 181 | 47 |
| Kanban "kanban-box" template | 163 | 54 |
| group_operator= on fields | 71 | 22 |
| tree_view_ref in contexts | 41 | 21 |
| _name_search() override no longer called | 25 | 14 |
| ORM methods removed in 18.0 | 1 | 1 |
Every change, with the fix
Blocking the module fails to install or upgrade, or the code raises an error
- "tree" views renamed "list". Rename <tree> to <list> and tree to list in view_mode and in Python view modes.
- user_has_groups() removed. Use self.env.user.has_group() (one group) or has_groups().
- ORM methods removed in 18.0. copy_multi → copy on a recordset; _generate_order_by → _order_to_sql; _inherits_join_calc → _field_to_sql; drop env.norecompute().
- name_get() removed. Read record.display_name instead.
Silent no error, but the behaviour is lost
- tree_view_ref in contexts. Rename to list_view_ref.
- _name_search() override no longer called. Override _search_display_name() or name_search() instead.
To watch deprecated, still working, will break in a later version
- Kanban "kanban-box" template. Define a "card" template (new kanban API).
- group_operator= on fields. Rename to aggregator=.
Check your own modules
Upgrade Readiness is a free module on the Odoo Apps Store. Install it on your 17.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 17.0 on the Apps Store
Odoo 17 is no longer one of the three versions covered by the Odoo Enterprise Subscription Agreement. Section 5.1 adds a yearly fee of 25% for databases on older versions.
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 18 to 19: 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.