[FW][IMP] calendar: update Google Calendar sync screenshots

Task ID: 2685658

closes odoo/documentation#2090

Forward-port-of: odoo/documentation#1982
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Michelle Vu (mivu) 2022-05-12 00:03:57 +00:00
parent f93aeec22f
commit a0a4a2da98
22 changed files with 96 additions and 55 deletions

View File

@ -2,89 +2,130 @@
Synchronize Google Calendar with Odoo Synchronize Google Calendar with Odoo
===================================== =====================================
Odoo is perfectly integrated with Google Calendar so that you Synchronize Google Calendar with Odoo to see and manage meetings from both platforms (updates go
can see & manage your meetings from both platforms in both directions). This integration helps organize your schedule so you never miss a meeting.
(updates go through both directions).
Setup in Google Setup in Google
=============== ===============
- Go to `Google APIs platform <https://console.developers.google.com>`__
to generate Google Calendar API credentials. Log in with your Google account.
- Go to the API & Services page. Enable Google Calendar API
--------------------------
.. image:: google_calendar_credentials/google_calendar_credentials00.png Begin by creating a new Google API project and enabling the Google Calendar API. Then, go to the
`Google API Console <https://console.developers.google.com>`_ and log into your Google account.
.. note::
If this is your first time visiting this page, Google will prompt you to enter a country and
agree to the Terms of Service. Select a country from the drop-down list and agree to the
:abbr:`ToS (Terms of Service)`.
Next, click :guilabel:`Select a project` and select or create an API project to store credentials.
.. image:: google_calendar_credentials/new-api-project.png
:align: center :align: center
:alt: Create a new API project to store credentials.
- Search for *Google Calendar API* and select it. .. tip::
Give the API Project a clear name like "Odoo Sync" so you can easily find it.
.. image:: google_calendar_credentials/google_calendar_credentials01.png Then, open the API Project and click :guilabel:`Enable APIs and Services`.
.. image:: google_calendar_credentials/enable-apis-services.png
:align: center :align: center
:alt: Enable APIs and Services on the API Project.
.. image:: google_calendar_credentials/google_calendar_credentials02.png After that, search for *Google Calendar API* using the search bar and select :guilabel:`Google
Calendar API` from the search results. Click :guilabel:`Enable`.
.. image:: google_calendar_credentials/enable-google-cal-api.png
:align: center :align: center
:alt: Enable the Google Calendar API.
- Enable the API. Create credentials
------------------
.. image:: google_calendar_credentials/google_calendar_credentials03.png Now that you have created your API project and enabled the Google Calendar API, you need to create
credentials. Begin by clicking :guilabel:`Create Credentials`. Google will then guide you through
four steps to create your API credentials.
- In the first step, :guilabel:`Credential Type`, select the :guilabel:`Google Calendar API` and
:guilabel:`User Data` options. Then, click :guilabel:`Next`.
.. image:: google_calendar_credentials/credential-type.png
:align: center :align: center
:alt: Select Google Calendar API and User Data for the Credential Type.
- Select or create an API project to store the credentials if not yet done - In the second step, :guilabel:`OAuth Consent Screen`, type *Odoo* in the :guilabel:`App name`
before. Give it an explicit name (e.g. Odoo Sync). field, select your email address for the :guilabel:`User support email` field, and type your email
address for the :guilabel:`Developer contact information` section. Then, click :guilabel:`Save
and Continue`.
- Create credentials. - Skip the third step, :guilabel:`Scopes`, by clicking :guilabel:`Save and Continue`.
.. image:: google_calendar_credentials/google_calendar_credentials04.png - In the last step, :guilabel:`OAuth Client ID`, select :guilabel:`Website application` for the
:guilabel:`Application Type` field and type *My Odoo Database* for the :guilabel:`Name`.
- Under the :guilabel:`Authorized JavaScript Origins` section, click :guilabel:`+ Add URI` and
type your company's Odoo URL address.
- Under the :guilabel:`Authorized redirect URIs` section, click :guilabel:`+ Add URI` and type
your company's Odoo URL address followed by */google_account/authentication*. Finally, click
:guilabel:`Create` and :guilabel:`Done`.
.. image:: google_calendar_credentials/uri.png
:align: center :align: center
:alt: Add the authorized JavaScript origins and the authorized redirect URIs.
- Select *Web browser (Javascript)* After successfully creating a new API project, enabling the Google Calendar API, and generating the
as calling source and *User data* as kind of data. Google Calendar API credentials, you should now have a Client ID and Client Secret.
.. image:: google_calendar_credentials/google_calendar_credentials05.png Client ID & Client Secret
:align: center -------------------------
- Then you can create a Client ID. The **Client ID** and the **Client Secret** are both needed to connect Google Calendar to Odoo. Find
Enter the name of the application (e.g. Odoo Calendar) and the allowed pages on the Client ID and the Client Secret by opening the Google Cloud Platform navigation menu and going
which you will be redirected. The *Authorized JavaScript origin* is your to :menuselection:`API & Services --> Credentials --> OAuth 2.0 Client IDs`.
Odoo's instance URL. The *Authorized redirect URI* is your Odoo's instance
URL followed by '/google_account/authentication'. Next, locate the credentials you just created for the Google Calendar API. Then, click on
:guilabel:`Edit OAuth Client` (the pencil icon). The page will redirect to the edit page, where you
.. image:: google_calendar_credentials/google_calendar_credentials06.png can view the Client ID and the Client Secret.
:align: center
.. image:: google_calendar_credentials/edit-oauth-2.png
- Go through the Consent Screen step by entering a product name
(e.g. Odoo Calendar). Feel free to check the customizations options
but this is not mandatory. The Consent Screen will only show up when you
enter the Client ID in Odoo for the first time.
- Finally you are provided with your **Client ID**. Go to *Credentials* to
get the **Client Secret** as well. Both of them are required in Odoo.
.. image:: google_calendar_credentials/google_calendar_credentials07.png
:align: center :align: center
:alt: Click Edit OAuth Client to view the credential details.
Setup in Odoo Setup in Odoo
============= =============
- Install the **Google Calendar** App from the *Apps* menu or by checking Once the Client ID and the Client Secret are located, open the Odoo database and go to
the option in :menuselection:`Settings --> General Settings`. :menuselection:`Settings --> General Settings --> Integrations --> Google Calendar`. Check the box
next to :guilabel:`Google Calendar`.
.. image:: google_calendar_credentials/google_calendar_credentials08.png .. image:: google_calendar_credentials/settings-google-cal.png
:align: center :align: center
:alt: The Google Calendar checkbox in General Settings.
- Go to :menuselection:`Settings --> General Settings` and enter your Next, copy and paste the Client ID and the Client Secret from the Google Calender API Credentials
**Client ID** and **Client Secret** in Google Calendar option. page into their respective fields below the :guilabel:`Google Calendar` checkbox. Then, click
:guilabel:`Save`.
.. image:: google_calendar_credentials/google_calendar_credentials09.png Finally, open the Calendar module in Odoo and click on the :guilabel:`Google` sync button to sync
Google Calendar with Odoo.
.. image:: google_calendar_credentials/sync-google.png
:align: center :align: center
:alt: Click the Google sync button in Odoo Calendar to sync Google Calendar with Odoo.
- The setup is now ready. Open your Odoo Calendar and sync with Google. .. note::
The first time you do it you are redirected to Google to authorize The first time you sync your Google Calendar with Odoo, the page will redirect to your Google
the connection. Once back in Odoo, click the sync button again. Account. Click :guilabel:`OK` and :guilabel:`Allow` to authorize Odoo to access Google Calendar.
You can click it whenever you want to synchronize your calendar.
.. image:: google_calendar_credentials/google_calendar_credentials10.png .. image:: google_calendar_credentials/trust-odoo.png
:align: center :align: center
:alt: Give Odoo permission to access Google Calendar.
As of now you no longer have excuses to miss a meeting! Now, Odoo Calendar is successfully synced with Google Calendar!
.. image:: google_calendar_credentials/successful-sync.png
:align: center
:alt: Successfully sync between Odoo and Google Calendar.

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB