From 598bd84870cf75c5541447ad016c5cc11c15abfb Mon Sep 17 00:00:00 2001 From: Adam Heinz Date: Mon, 9 Mar 2026 16:57:24 -0400 Subject: [PATCH] [FIX] auditlog: Test _compute_display_name more defensively. --- auditlog/tests/test_http.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/auditlog/tests/test_http.py b/auditlog/tests/test_http.py index df3179930c1..b1d27339876 100644 --- a/auditlog/tests/test_http.py +++ b/auditlog/tests/test_http.py @@ -31,7 +31,11 @@ def test_compute_display_name(self): }, ) logs = self.env["auditlog.log"].search( - [("model_id", "=", rule.model_id.id), ("res_id", "=", partner.id)] + [ + ("model_id", "=", rule.model_id.id), + ("res_id", "=", partner.id), + ("line_ids.field_name", "=", "name"), + ] ) self.assertEqual(len(logs), 1) http_request_id = logs[0]["http_request_id"]