[MIG] web_notify: Migration to 13.0

This commit is contained in:
laurent.corron
2019-11-14 15:39:25 +01:00
committed by Kevin Khao
parent 44e84eeb39
commit 554aea8c61
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ class TestResUsers(common.TransactionCase):
def test_notify_other_user(self):
other_user = self.env.ref("base.user_demo")
other_user_model = self.env["res.users"].sudo(other_user)
other_user_model = self.env["res.users"].with_user(other_user)
with self.assertRaises(exceptions.UserError):
other_user_model.browse(self.env.uid).notify_info(message="hello")