summaryrefslogtreecommitdiff
path: root/addons/test_mail/tests/test_discuss.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2018-07-23 10:47:19 +0200
committerRaphael Collet <rco@odoo.com>2018-08-23 21:38:57 +0200
commit2f7c03d9ca5809b65dc6eaa778064668d34fcd2e (patch)
tree1d3452d9a127de1396563ab3b5f70de6e2bd5a7f /addons/test_mail/tests/test_discuss.py
parent7ba9acea188a08a75ab1cd4a7f5f56e0d0f956ef (diff)
[IMP] base: add regular user admin as uid 2
User 1 simply becomes a technical user (inactive, no password).
Diffstat (limited to 'addons/test_mail/tests/test_discuss.py')
-rw-r--r--addons/test_mail/tests/test_discuss.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_mail/tests/test_discuss.py b/addons/test_mail/tests/test_discuss.py
index 3a3cb21d043..907f95be0e7 100644
--- a/addons/test_mail/tests/test_discuss.py
+++ b/addons/test_mail/tests/test_discuss.py
@@ -119,7 +119,7 @@ class TestNotifications(BaseFunctionalTest, MockEmails):
message.sudo(user_portal).set_message_done()
def test_set_star(self):
- msg = self.test_record.message_post(body='My Body', subject='1')
+ msg = self.test_record.sudo(self.user_admin).message_post(body='My Body', subject='1')
msg_emp = self.env['mail.message'].sudo(self.user_employee).browse(msg.id)
# Admin set as starred