From abeb7f907a0bd41e90b5a0b69cfbff74dae65d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 8 Feb 2021 10:46:59 +0000 Subject: [PATCH] [FIX] crm: update query counters Probably linked to merge and forward of odoo/odoo#65688 that split some computed fields. This may have an impact on some fields computation and therefore queries. Task ID-2455236 closes odoo/odoo#65748 X-original-commit: b1520ad39c7abd18f8af1c3b23e6e3e897916004 Signed-off-by: Thibault Delavallee (tde) --- addons/crm/tests/test_performances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/tests/test_performances.py b/addons/crm/tests/test_performances.py index 097615cc26a..62f8bdc036f 100644 --- a/addons/crm/tests/test_performances.py +++ b/addons/crm/tests/test_performances.py @@ -46,7 +46,7 @@ class TestLeadAssignPerf(TestLeadAssignCommon): lead.probability = (idx + 1) * 10 * ((int(lead.priority) + 1) / 2) with self.with_user('user_sales_manager'): - with self.assertQueryCount(user_sales_manager=470): # crm only: 465 + with self.assertQueryCount(user_sales_manager=474): # crm only: 466 self.env['crm.team'].browse(self.sales_teams.ids)._action_assign_leads(work_days=2) # teams assign @@ -66,7 +66,7 @@ class TestLeadAssignPerf(TestLeadAssignCommon): # run a second round to finish leads with self.with_user('user_sales_manager'): - with self.assertQueryCount(user_sales_manager=132): # crm only: 123 + with self.assertQueryCount(user_sales_manager=137): # crm only: 128 self.env['crm.team'].browse(self.sales_teams.ids)._action_assign_leads(work_days=2) # teams assign: everything should be done due to duplicates