diff options
| author | Olivier Colson <oco@odoo.com> | 2018-09-03 10:15:58 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-09-14 17:29:49 +0200 |
| commit | 3c2a92e82077b9d5994903e25739028f2fe468ee (patch) | |
| tree | e8c5e1b2de2dd8a3ab49fcfbdc80d2aebdbf1de4 /addons/test_mail/tests/test_performance.py | |
| parent | a0901237f22396d9731236d5611b3e441834a15d (diff) | |
[IMP] mail: add main attachment support on mail.thread
This is done by adding a new field on mail.thread objects and setting it when posting a message with attachments on a model inheriting from mail.thread.
Was part of PR #26740
Was part of task #1880089
Diffstat (limited to 'addons/test_mail/tests/test_performance.py')
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index 7b170ef2c31..eebabca82b4 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -271,7 +271,7 @@ class TestAdvMailPerformance(TransactionCase): def test_message_post_one_inbox_notification(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(__system__=31, emp=42): # com runbot 30 - 41 // test_mail only: 31 - 42 + with self.assertQueryCount(__system__=31, emp=43): # com runbot 30 - 42 // test_mail only: 31 - 43 record.message_post( body='<p>Test Post Performances with an inbox ping</p>', partner_ids=self.user_test.partner_id.ids, @@ -504,7 +504,7 @@ class TestHeavyMailPerformance(TransactionCase): customer_id = self.customer.id user_id = self.user_portal.id - with self.assertQueryCount(__system__=155, emp=190): # com runbot: 155 - 190 // test_mail only: 155 - 190 + with self.assertQueryCount(__system__=156, emp=190): # com runbot: 156 - 190 // test_mail only: 156 - 190 rec = self.env['mail.test.full'].create({ 'name': 'Test', 'umbrella_id': umbrella_id, |
