You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
503 B

6 years ago
  1. # Copyright 2018 Alexandre Díaz
  2. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  3. from odoo.tests import common
  4. class TestResUsers(common.TransactionCase):
  5. def test_chatter_position_wr(self):
  6. user_public = self.env.ref('base.public_user')
  7. self.assertEqual(user_public.chatter_position, 'normal')
  8. user_public.sudo(user_public).write({
  9. 'chatter_position': 'sided',
  10. })
  11. self.assertEqual(user_public.chatter_position, 'sided')