mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-21 02:42:07 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -26,9 +26,9 @@ class GoogleAuth(http.Controller):
|
|||
service,
|
||||
redirect_uri=f'{base_url}/google_account/authentication'
|
||||
)
|
||||
service_field = f'google_{service}_account_id'
|
||||
service_field = 'res_users_settings_id'
|
||||
if service_field in request.env.user:
|
||||
request.env.user[service_field]._set_auth_tokens(access_token, refresh_token, ttl)
|
||||
request.env.user[service_field]._set_google_auth_tokens(access_token, refresh_token, ttl)
|
||||
else:
|
||||
raise Warning('No callback field for service <%s>' % service)
|
||||
return request.redirect(url_return)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue