Skip to content

Conversation

@amh-mw
Copy link
Member

@amh-mw amh-mw commented Sep 24, 2025

The name_get method was deprecated in Odoo 17 and removed in Odoo 18.

This was identified by running base module tests on an odoo:18 container with auditlog installed, yielding:

ERROR odoo odoo.addons.base.tests.test_deprecation: FAIL: Subtest TestModelDeprecations.test_name_get (model='auditlog.http.session')
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/tests/test_deprecation.py", line 37, in test_name_get
    self.fail(f"Deprecated name_get method found on {model_name} in {module.__name__}, you should override `_compute_display_name` instead")
AssertionError: Deprecated name_get method found on auditlog.http.session in odoo.addons.auditlog.models.http_session, you should override `_compute_display_name` instead

The `name_get` method was deprecated in Odoo 17 and removed in
Odoo 18.
@amh-mw amh-mw changed the title [FIX] auditlog: Remove deprecated name_get methods from models. [18.0][FIX] auditlog: Remove deprecated name_get methods from models. Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants