'Re-initializes the current user\'s session context (based on his
preferences) by calling res.users.get_context() with the old context.
:returns: the new context'

def get_context(self):

    assert self.uid, 'The    user    needs    to    be    logged-in    to    initialize    his    context'
    self.context = (request.env['res.users'].context_get() or {})
    self.context['uid'] = self.uid
    self._fix_lang(self.context)
    return self.context
