upgrade-name-get (U1709)#
name_get, no longer used for display names since Odoo 17.0.
Applies to Odoo 17.0 and later.
What it does#
Reports name_get overrides in models and calls to name_get().
Why is this bad?#
Since Odoo 17.0 display_name is computed by _compute_display_name,
which no longer calls name_get: an override silently stops changing how
records are shown. 18.0 removed name_get.
Override _compute_display_name (with @api.depends) and read
record.display_name.
Fix safety#
Safe for record.name_get()[0][1], which becomes record.display_name.