summaryrefslogtreecommitdiff
path: root/addons/test_mail/tests/test_performance.py
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2019-01-22 09:21:27 +0000
committerThanh Dodeur <tso@odoo.com>2019-02-11 14:33:15 +0000
commit0284e5f3fdd2abef8252cc725d091765359532a7 (patch)
tree96db4dd1ab8eb7c9c1bb3da6549a2eb81792f352 /addons/test_mail/tests/test_performance.py
parent9352bb682f2867a561df1f0322d1d5ffa06656c2 (diff)
[REF] account: prepares hooks for reconciliation requests
This commit changes some methods so they can be used in the account_documents enterprise bridge and adapts activity tests for the new request on upload_file feature. task: #1928404 related to: odoo/enterprise#3607 closes odoo/odoo#30950
Diffstat (limited to 'addons/test_mail/tests/test_performance.py')
-rw-r--r--addons/test_mail/tests/test_performance.py4
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 ff162bb1ecf..50744c54f56 100644
--- a/addons/test_mail/tests/test_performance.py
+++ b/addons/test_mail/tests/test_performance.py
@@ -172,7 +172,7 @@ class TestAdvMailPerformance(TransactionCase):
'default_res_model': 'mail.test.activity',
})
- with self.assertQueryCount(__system__=10, emp=16): # com runbot: 9 - 15 // test_mail only: 10 - 15
+ with self.assertQueryCount(__system__=10, emp=17): # com runbot: 9 - 15 // test_mail only: 10 - 15
activity = MailActivity.create({
'summary': 'Test Activity',
'res_id': record.id,
@@ -191,7 +191,7 @@ class TestAdvMailPerformance(TransactionCase):
def test_adv_activity_mixin(self):
record = self.env['mail.test.activity'].create({'name': 'Test'})
- with self.assertQueryCount(__system__=10, emp=16): # com runbot: 9 - 15 // test_mail only: 10 - 15
+ with self.assertQueryCount(__system__=10, emp=17): # com runbot: 9 - 15 // test_mail only: 10 - 15
activity = record.action_start('Test Start')
#read activity_type to normalize cache between enterprise and community
#voip module read activity_type during create leading to one less query in enterprise on action_close