'inherited fields should be read without any indirection'

@mute_logger('odoo.models')
def test_read(self):

    user_foo = self.env['res.users'].create({'name': 'Foo', 'login': 'foo'})
    (user_values,) = user_foo.read()
    (partner_values,) = user_foo.partner_id.read()
    self.assertEqual(user_values['name'], partner_values['name'])
    self.assertEqual(user_foo.name, user_foo.partner_id.name)
