(self, from_url, service, scope)
return "%s?%s" % (self._get_auth_endpoint(), encoded_params)
This method return the url needed to allow this instance of Odoo to access to the scope
            of gmail specified as parameters
This method return the url needed to allow this instance of Odoo to access to the scope
            of gmail specified as parameters
This method return the url needed to allow this instance of Odoo to access to the scope of gmail specified as parameters
def _get_authorize_uri(self, from_url, service, scope):
        """ This method return the url needed to allow this instance of Odoo to access to the scope
            of gmail specified as parameters
        """
        state = {
            'd': self.env.cr.dbname,
            's': service,
            'f': from_url
        }

        get_param = self.env['ir.config_parameter'].sudo().get_param
        base_url = get_param('web.base.url', default='http://www.odoo.com?NoBaseUrl')
        client_id = get_param('microsoft_%s_client_id' % (service,), default=False)

        encoded_params = urls.url_encode({
            'response_type': 'code',
            'client_id': client_id,
            'state': json.dumps(state),
            'scope': scope,
            'redirect_uri': base_url + '/microsoft_account/authentication',
            'prompt': 'consent',
            'access_type': 'offline'
        })
        return "%s?%s" % (self._get_auth_endpoint(), encoded_params)
def _get_authorize_uri ( self , from_url , service , scope ) : state = { 'd' : self . env . cr . dbname , 's' : service , 'f' : from_url } get_param = self . env [ 'ir.config_parameter' ] . sudo ( ) . get_param base_url = get_param ( 'web.base.url' , default = 'http://www.odoo.com?NoBaseUrl' ) client_id = get_param ( 'microsoft_%s_client_id' % ( service , ) , default = False ) encoded_params = urls . url_encode ( { 'response_type' : 'code' , 'client_id' : client_id , 'state' : json . dumps ( state ) , 'scope' : scope , 'redirect_uri' : base_url + '/microsoft_account/authentication' , 'prompt' : 'consent' , 'access_type' : 'offline' } ) return "%s?%s" % ( self . _get_auth_endpoint ( ) , encoded_params )