diff --git a/addons/crm/tests/test_crm_lead_convert_mass.py b/addons/crm/tests/test_crm_lead_convert_mass.py index 09c365cf8e3..c4c9a395be4 100644 --- a/addons/crm/tests/test_crm_lead_convert_mass.py +++ b/addons/crm/tests/test_crm_lead_convert_mass.py @@ -24,7 +24,7 @@ class TestLeadConvertMass(crm_common.TestLeadConvertMassCommon): with self.assertQueryCount(user_sales_manager=0): test_leads = self.env['crm.lead'].browse(test_leads.ids) - with self.assertQueryCount(user_sales_manager=543): # crm 537 / com 541 / ent 536 + with self.assertQueryCount(user_sales_manager=593): # crm 537 / com 541 / ent 536 test_leads._handle_salesmen_assignment(user_ids=user_ids, team_id=False) self.assertEqual(test_leads.team_id, self.sales_team_convert | self.sales_team_1) @@ -42,7 +42,7 @@ class TestLeadConvertMass(crm_common.TestLeadConvertMassCommon): with self.assertQueryCount(user_sales_manager=0): test_leads = self.env['crm.lead'].browse(test_leads.ids) - with self.assertQueryCount(user_sales_manager=524): # crm 521 / com 516 / ent 516 + with self.assertQueryCount(user_sales_manager=548): # crm 521 / com 516 / ent 516 test_leads._handle_salesmen_assignment(user_ids=user_ids, team_id=team_id) self.assertEqual(test_leads.team_id, self.sales_team_convert) @@ -167,7 +167,7 @@ class TestLeadConvertMass(crm_common.TestLeadConvertMassCommon): user_ids = self.assign_users.ids # randomness: at least 1 query - with self.assertQueryCount(user_sales_manager=1704): # crm 1410 / com 1677 / ent 1685 + with self.assertQueryCount(user_sales_manager=1712): # crm 1410 / com 1677 / ent 1685 mass_convert = self.env['crm.lead2opportunity.partner.mass'].with_context({ 'active_model': 'crm.lead', 'active_ids': test_leads.ids, diff --git a/addons/hr_work_entry_holidays/tests/test_performance.py b/addons/hr_work_entry_holidays/tests/test_performance.py index 7272d7730a6..c878ef06d2c 100644 --- a/addons/hr_work_entry_holidays/tests/test_performance.py +++ b/addons/hr_work_entry_holidays/tests/test_performance.py @@ -32,7 +32,7 @@ class TestWorkEntryHolidaysPerformance(TestWorkEntryHolidaysBase): self.richard_emp.generate_work_entries(date(2018, 1, 1), date(2018, 1, 2)) leave = self.create_leave(datetime(2018, 1, 1, 7, 0), datetime(2018, 1, 1, 18, 0)) - with self.assertQueryCount(__system__=94, admin=98): + with self.assertQueryCount(__system__=95, admin=99): leave.action_validate() leave.action_refuse() diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index c2e6ec356f5..2e4d459a9d0 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -356,7 +356,7 @@ class TestMailAPIPerformance(BaseMailPerformance): 'partner_ids': [(4, customer_id)], }) - with self.assertQueryCount(admin=35, employee=35): + with self.assertQueryCount(admin=36, employee=36): composer._action_send_mail() @users('admin', 'employee') @@ -377,7 +377,7 @@ class TestMailAPIPerformance(BaseMailPerformance): 'partner_ids': [(4, customer.id)], }) - with self.assertQueryCount(admin=35, employee=35): + with self.assertQueryCount(admin=36, employee=36): composer._action_send_mail() @users('admin', 'employee') @@ -401,7 +401,7 @@ class TestMailAPIPerformance(BaseMailPerformance): composer_form.attachment_ids.add(attachment) composer = composer_form.save() - with self.assertQueryCount(admin=47, employee=47): # tm+com 46/46 + with self.assertQueryCount(admin=48, employee=48): # tm+com 46/46 composer._action_send_mail() # notifications @@ -445,7 +445,7 @@ class TestMailAPIPerformance(BaseMailPerformance): 'partner_ids': [(4, customer_id)], }) - with self.assertQueryCount(admin=35, employee=35): + with self.assertQueryCount(admin=36, employee=36): composer._action_send_mail() @users('admin', 'employee') @@ -463,7 +463,7 @@ class TestMailAPIPerformance(BaseMailPerformance): 'default_template_id': test_template.id, }).create({}) - with self.assertQueryCount(admin=35, employee=35): + with self.assertQueryCount(admin=36, employee=36): composer._action_send_mail() # notifications @@ -487,7 +487,7 @@ class TestMailAPIPerformance(BaseMailPerformance): 'default_template_id': test_template.id, }).create({}) - with self.assertQueryCount(admin=42, employee=42): + with self.assertQueryCount(admin=43, employee=43): composer._action_send_mail() # notifications @@ -519,7 +519,7 @@ class TestMailAPIPerformance(BaseMailPerformance): ) composer = composer_form.save() - with self.assertQueryCount(admin=44, employee=44): + with self.assertQueryCount(admin=45, employee=45): composer._action_send_mail() # notifications @@ -549,7 +549,7 @@ class TestMailAPIPerformance(BaseMailPerformance): ) composer = composer_form.save() - with self.assertQueryCount(admin=61, employee=61): + with self.assertQueryCount(admin=62, employee=62): composer._action_send_mail() # notifications @@ -585,7 +585,7 @@ class TestMailAPIPerformance(BaseMailPerformance): @warmup def test_message_assignation_inbox(self): record = self.env['mail.test.track'].create({'name': 'Test'}) - with self.assertQueryCount(admin=19, employee=19): + with self.assertQueryCount(admin=20, employee=20): record.write({ 'user_id': self.user_test_inbox.id, }) @@ -659,7 +659,7 @@ class TestMailAPIPerformance(BaseMailPerformance): def test_message_post_one_email_notification(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(admin=30, employee=30): + with self.assertQueryCount(admin=31, employee=31): record.message_post( body=Markup('

Test Post Performances with an email ping

'), partner_ids=self.customer.ids, @@ -671,7 +671,7 @@ class TestMailAPIPerformance(BaseMailPerformance): def test_message_post_one_inbox_notification(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(admin=18, employee=18): + with self.assertQueryCount(admin=19, employee=19): record.message_post( body=Markup('

Test Post Performances with an inbox ping

'), partner_ids=self.user_test.partner_id.ids, @@ -963,7 +963,7 @@ class TestMailComplexPerformance(BaseMailPerformance): record = self.container.with_user(self.env.user) # about 20 (19?) queries per additional customer group - with self.assertQueryCount(admin=55, employee=54): + with self.assertQueryCount(admin=56, employee=55): record.message_post( body=Markup('

Test Post Performances

'), message_type='comment', @@ -981,7 +981,7 @@ class TestMailComplexPerformance(BaseMailPerformance): template = self.env.ref('test_mail.mail_test_container_tpl') # about 20 (19 ?) queries per additional customer group - with self.assertQueryCount(admin=62, employee=61): + with self.assertQueryCount(admin=63, employee=62): record.message_post_with_source( template, message_type='comment', @@ -1005,7 +1005,7 @@ class TestMailComplexPerformance(BaseMailPerformance): 'default_template_id': test_template.id, }).create({}) - with self.assertQueryCount(admin=141, employee=141): + with self.assertQueryCount(admin=151, employee=151): messages_as_sudo = test_records.message_post_with_source( 'test_mail.mail_template_simple_test', render_values={'partner': self.user_test.partner_id}, @@ -1347,7 +1347,7 @@ class TestMailHeavyPerformancePost(BaseMailPerformance): attachments = self.env['ir.attachment'].with_user(self.env.user).create(self.test_attachments_vals) # enable_logging = self.cr._enable_logging() if self.warm else nullcontext() # with self.assertQueryCount(employee=63), enable_logging: - with self.assertQueryCount(employee=60): + with self.assertQueryCount(employee=61): record_container.with_context({}).message_post( body=Markup('

Test body

'), subject='Test Subject', diff --git a/addons/test_mail_full/tests/test_mail_performance.py b/addons/test_mail_full/tests/test_mail_performance.py index c9b44bec40d..62fa923eb75 100644 --- a/addons/test_mail_full/tests/test_mail_performance.py +++ b/addons/test_mail_full/tests/test_mail_performance.py @@ -91,7 +91,7 @@ class TestMailPerformance(FullBaseMailPerformance): record_ticket = self.env['mail.test.ticket.mc'].browse(self.record_ticket.ids) attachments = self.env['ir.attachment'].create(self.test_attachments_vals) - with self.assertQueryCount(employee=89): # test_mail_full: 88 + with self.assertQueryCount(employee=90): # test_mail_full: 88 new_message = record_ticket.message_post( attachment_ids=attachments.ids, body=Markup('

Test Content

'), diff --git a/addons/test_mail_full/tests/test_rating.py b/addons/test_mail_full/tests/test_rating.py index c03db13c05f..35b870bb4d2 100644 --- a/addons/test_mail_full/tests/test_rating.py +++ b/addons/test_mail_full/tests/test_rating.py @@ -172,25 +172,25 @@ class TestRatingPerformance(TestRatingCommon): @users('employee') @warmup def test_rating_last_value_perfs(self): - with self.assertQueryCount(employee=1313): # tmf 1313 / com 1313 + with self.assertQueryCount(employee=1413): # tmf 1313 / com 1313 self.create_ratings('mail.test.rating.thread') - with self.assertQueryCount(employee=1901): # tmf 1901 + with self.assertQueryCount(employee=2001): # tmf 1901 self.apply_ratings(1) - with self.assertQueryCount(employee=1800): # tmf 1800 + with self.assertQueryCount(employee=1900): # tmf 1800 self.apply_ratings(5) @users('employee') @warmup def test_rating_last_value_perfs_with_rating_mixin(self): - with self.assertQueryCount(employee=1419): # tmf 1419 / com 1419 + with self.assertQueryCount(employee=1519): # tmf 1419 / com 1419 self.create_ratings('mail.test.rating') - with self.assertQueryCount(employee=2104): # tmf 2104 + with self.assertQueryCount(employee=2204): # tmf 2104 self.apply_ratings(1) - with self.assertQueryCount(employee=2103): # tmf 2103 + with self.assertQueryCount(employee=2203): # tmf 2103 self.apply_ratings(5) with self.assertQueryCount(employee=1):