diff --git a/addons/crm/tests/test_performances.py b/addons/crm/tests/test_performances.py index 4b7ba29d856..dd4b58b8227 100644 --- a/addons/crm/tests/test_performances.py +++ b/addons/crm/tests/test_performances.py @@ -48,6 +48,7 @@ class TestLeadAssignPerf(TestLeadAssignCommon): leads.flush() with self.with_user('user_sales_manager'): + self.env['res.users'].has_group('base.group_user') # warmup the cache to avoid inconsistency between community an enterprise with self.assertQueryCount(user_sales_manager=1279): self.env['crm.team'].browse(self.sales_teams.ids)._action_assign_leads(work_days=2)