mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-22 09:12:10 +02:00
19.0 vanilla
This commit is contained in:
parent
20ddc1b4a3
commit
c0efcc53f5
1162 changed files with 125577 additions and 105287 deletions
|
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import requests
|
||||
|
|
@ -207,7 +206,13 @@ class MicrosoftCalendarService():
|
|||
return 'offline_access openid Calendars.ReadWrite'
|
||||
|
||||
def _microsoft_authentication_url(self, from_url='http://www.odoo.com'):
|
||||
return self.microsoft_service._get_authorize_uri(from_url, service='calendar', scope=self._get_calendar_scope())
|
||||
redirect_uri = self.microsoft_service.get_base_url() + '/microsoft_account/authentication'
|
||||
return self.microsoft_service._get_authorize_uri(
|
||||
from_url,
|
||||
service='calendar',
|
||||
scope=self._get_calendar_scope(),
|
||||
redirect_uri=redirect_uri
|
||||
)
|
||||
|
||||
def _can_authorize_microsoft(self, user):
|
||||
return user.has_group('base.group_erp_manager')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue