forked from Techsystech/web
[MIG] web_notify: Migration to 13.0
parent
26a049cd05
commit
76236f2f3f
|
@ -6,7 +6,7 @@
|
||||||
"name": "Web Notify",
|
"name": "Web Notify",
|
||||||
"summary": """
|
"summary": """
|
||||||
Send notification messages to user""",
|
Send notification messages to user""",
|
||||||
"version": "12.0.1.0.0",
|
"version": "13.0.1.0.0",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "ACSONE SA/NV," "AdaptiveCity," "Odoo Community Association (OCA)",
|
"author": "ACSONE SA/NV," "AdaptiveCity," "Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/web",
|
"website": "https://github.com/OCA/web",
|
||||||
|
|
|
@ -97,7 +97,7 @@ class TestResUsers(common.TransactionCase):
|
||||||
|
|
||||||
def test_notify_other_user(self):
|
def test_notify_other_user(self):
|
||||||
other_user = self.env.ref("base.user_demo")
|
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):
|
with self.assertRaises(exceptions.UserError):
|
||||||
other_user_model.browse(self.env.uid).notify_info(message="hello")
|
other_user_model.browse(self.env.uid).notify_info(message="hello")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue