summaryrefslogtreecommitdiff
path: root/addons/test_mail/tests/test_discuss.py
diff options
context:
space:
mode:
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