upgrade-removed-18 (U1891)#

A model or field that Odoo 18.0 removed.

Applies to Odoo 18.0 and later.

What it does#

Reports the models and fields that Odoo 18.0 removed, in the places listed for the renames (U1890).

Why is this bad?#

The name no longer exists: env["..."] raises a KeyError, an _inherit stops the registry from loading, a view or data file fails to install, and Python code fails where it reads the field. The feature moved elsewhere or went away; there is no automatic fix.

Limitations#

The data comes from the analysis of OpenUpgrade, checked against Odoo’s sources, so it covers Odoo’s own modules. Docstrings, migration scripts, version guards, models and fields the module defines itself, and names other rules report are skipped.