[FIX] mail_tracking: be closer to what Odoo does in a nodb environment

pull/1332/head
Holger Brunn 2024-03-18 12:40:20 +01:00
parent 20778cedce
commit b8848c531d
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ class TestMailTracking(TransactionCase):
controller.mail_tracking_open(db, tracking.id, False) controller.mail_tracking_open(db, tracking.id, False)
def test_db_env_no_cr(self): def test_db_env_no_cr(self):
http.request.cr = None http.request.env = None
db = self.env.cr.dbname db = self.env.cr.dbname
controller = MailTrackingController() controller = MailTrackingController()
# Cast Cursor to Mock object to avoid raising 'Cursor not closed explicitly' log # Cast Cursor to Mock object to avoid raising 'Cursor not closed explicitly' log