19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:53 +01:00
parent dc68f80d3f
commit 7221b9ac46
610 changed files with 135477 additions and 161677 deletions

View file

@ -11,7 +11,7 @@ class TestLeadEnrich(TestCrmCommon, MockIAPEnrich):
@classmethod
def setUpClass(cls):
super(TestLeadEnrich, cls).setUpClass()
cls.registry.enter_test_mode(cls.cr)
cls.registry_enter_test_mode_cls()
cls.leads = cls.env['crm.lead']
for x in range(0, 4):
@ -20,11 +20,6 @@ class TestLeadEnrich(TestCrmCommon, MockIAPEnrich):
'email_from': 'test_mail_%s@megaexample.com' % x
})
@classmethod
def tearDownClass(cls):
cls.registry.leave_test_mode()
super().tearDownClass()
@users('user_sales_manager')
def test_enrich_internals(self):
leads = self.env['crm.lead'].browse(self.leads.ids)
@ -42,12 +37,6 @@ class TestLeadEnrich(TestCrmCommon, MockIAPEnrich):
for lead in leads:
self.assertEqual(lead.street, 'Simulator Street')
# @users('sales_manager')
# def test_enrich_error_credit(self):
# leads = self.env['crm.lead'].browse(self.leads.ids)
# with self.mockIAPEnrichGateway(sim_error='credit'):
# leads.iap_enrich()
@users('user_sales_manager')
def test_enrich_error_jsonrpc_exception(self):
leads = self.env['crm.lead'].browse(self.leads.ids)