Skip to content

Commit 4a0624c

Browse files
committed
[IMP] productivity: calendar google add troubleshooting
closes #8857 X-original-commit: 728dcf5 Signed-off-by: Samuel Lieber (sali) <[email protected]> Signed-off-by: Timothy Kukulka (tiku) <[email protected]>
1 parent 8d4ad5f commit 4a0624c

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

content/applications/productivity/calendar/google.rst

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Now, Odoo Calendar is successfully synced with Google Calendar!
151151
- Adding a contact to an event causes Google to send an invitation to all event attendees.
152152
- Removing a contact from an event causes Google to send a cancellation to all event attendees.
153153

154-
Events can be created in Google Calendar without sending a notification by selecting
154+
Events can be created in *Google Calendar* without sending a notification by selecting
155155
:guilabel:`Don't Send` when prompted to send invitation emails.
156156

157157
Troubleshoot sync
@@ -197,3 +197,63 @@ The following reset options are available for troubleshooting Google calendar sy
197197

198198
Click :guilabel:`Confirm` after making the selection to modify the user's events and the calendar
199199
synchronization.
200+
201+
Google OAuth FAQ
202+
================
203+
204+
At times there can be misconfigurations that take place, and troubleshooting is needed to resolve
205+
the issue. Below are the most common errors that may occur when configuring the *Google Calendar*
206+
for use with Odoo.
207+
208+
Production vs. testing publishing status
209+
----------------------------------------
210+
211+
Choosing :guilabel:`Production` as the :guilabel:`Publishing Status` (instead of
212+
:guilabel:`Testing`) displays the following warning message:
213+
214+
`OAuth is limited to 100 sensitive scope logins until the OAuth consent screen is verified. This may
215+
require a verification process that can take several days.`
216+
217+
To correct this warning, navigate to the `Google API Platform
218+
<https://console.cloud.google.com/apis/credentials/consent>`_. If the :guilabel:`Publishing Status`
219+
is :guilabel:`In Production`, click :guilabel:`Back to Testing` to correct the issue.
220+
221+
No test users added
222+
-------------------
223+
224+
If no test users are added to the :guilabel:`OAuth consent screen`, then an :guilabel:`Error 403:
225+
access_denied` populates.
226+
227+
.. image:: google/403-error.png
228+
:align: center
229+
:alt: 403 Access Denied Error.
230+
231+
To correct this error, return to the :guilabel:`OAuth consent screen`, under :guilabel:`APIs &
232+
Services`, and add test users to the app. Add the email to be configured in Odoo.
233+
234+
Application Type
235+
----------------
236+
237+
When creating the credentials (OAuth *Client ID* and *Client Secret*), if :guilabel:`Desktop App` is
238+
selected for the :guilabel:`Application Type`, an :guilabel:`Authorization Error` appears
239+
(:guilabel:`Error 400:redirect_uri_mismatch`).
240+
241+
.. image:: google/error-400.png
242+
:align: center
243+
:alt: Error 400 Redirect URI Mismatch.
244+
245+
To correct this error, delete the existing credentials, and create new credentials, by selecting
246+
:guilabel:`Web Application` for the :guilabel:`Application Type`.
247+
248+
Then, under :guilabel:`Authorized redirect URIs`, click :guilabel:`ADD URI`, and type:
249+
`https://yourdbname.odoo.com/google_account/authentication` in the field, being sure to replace
250+
*yourdbname* in the URL with the **real** Odoo database name.
251+
252+
.. tip::
253+
Ensure that the domain (used in the URI:
254+
`https://yourdbname.odoo.com/google_account/authentication`) is the exact same domain as
255+
configured in the `web.base.url` system parameter.
256+
257+
Access the `web.base.url` by activating :ref:`developer mode <developer-mode>`, and navigating to
258+
:menuselection:`Settings app --> Technical header menu --> Parameters section --> System
259+
Parameters`.
Loading
Loading

0 commit comments

Comments
 (0)