diff options
| author | Didier (did) <did@odoo.com> | 2021-03-04 15:37:16 +0000 |
|---|---|---|
| committer | Didier (did) <did@odoo.com> | 2021-03-08 12:01:06 +0000 |
| commit | 732e581f38e8f93f26892ac445493694933ff61a (patch) | |
| tree | 621b93c3080457e4511f1802ba729a996f3c9b42 /addons/test_mail/tests/test_performance.py | |
| parent | 50139783d6524ea5359d5d8e05ed7471fefc2def (diff) | |
[FIX] mail, test_mail: ensure thread name is up to date on message
When formatting a message, a message could be with an empty or obsolete
record_name field. It's better to rely on the relation between the message and
the thread and fetch the current thread name.
task-2411715
closes odoo/odoo#63000
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/test_mail/tests/test_performance.py')
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index 94b217239c1..d7c2e07066a 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -854,7 +854,7 @@ class TestMailComplexPerformance(BaseMailPerformance): messages.flush() messages.invalidate_cache() - with self.assertQueryCount(emp=13): + with self.assertQueryCount(emp=15): res = messages.message_format() self.assertEqual(len(res), 6) |
