2018-04-04 18:01:23 +07:00
|
|
|
=====================================
|
|
|
|
Synchronize Google Calendar with Odoo
|
|
|
|
=====================================
|
2017-01-03 19:43:01 +07:00
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
Odoo is perfectly integrated with Google Calendar so that you
|
|
|
|
can see & manage your meetings from both platforms
|
|
|
|
(updates go through both directions).
|
2017-01-03 19:43:01 +07:00
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
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.
|
|
|
|
|
2017-12-12 22:36:26 +07:00
|
|
|
- Go to the API & Services page.
|
2017-01-03 19:43:01 +07:00
|
|
|
|
2017-12-12 22:36:26 +07:00
|
|
|
.. image:: media/google_calendar_credentials00.png
|
2017-01-03 19:43:01 +07:00
|
|
|
:align: center
|
|
|
|
|
2017-12-12 22:36:26 +07:00
|
|
|
- Search for *Google Calendar API* and select it.
|
|
|
|
|
|
|
|
.. image:: media/google_calendar_credentials01.png
|
|
|
|
:align: center
|
2017-01-03 19:43:01 +07:00
|
|
|
|
|
|
|
.. image:: media/google_calendar_credentials02.png
|
|
|
|
:align: center
|
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
- Enable the API.
|
|
|
|
|
2017-01-03 19:43:01 +07:00
|
|
|
.. image:: media/google_calendar_credentials03.png
|
|
|
|
:align: center
|
|
|
|
|
2017-12-12 22:36:26 +07:00
|
|
|
- Select or create an API project to store the credentials if not yet done
|
|
|
|
before. Give it an explicit name (e.g. Odoo Sync).
|
|
|
|
|
|
|
|
- Create credentials.
|
2017-05-17 21:26:02 +07:00
|
|
|
|
2017-01-03 19:43:01 +07:00
|
|
|
.. image:: media/google_calendar_credentials04.png
|
|
|
|
:align: center
|
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
- Select *Web browser (Javascript)*
|
|
|
|
as calling source and *User data* as kind of data.
|
2017-01-03 19:43:01 +07:00
|
|
|
|
|
|
|
.. image:: media/google_calendar_credentials05.png
|
|
|
|
:align: center
|
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
- Then you can create a Client ID.
|
2017-12-12 22:36:26 +07:00
|
|
|
Enter the name of the application (e.g. Odoo Calendar) and the allowed pages on
|
2017-05-17 21:26:02 +07:00
|
|
|
which you will be redirected. The *Authorized JavaScript origin* is your
|
|
|
|
Odoo's instance URL. The *Authorized redirect URI* is your Odoo's instance
|
|
|
|
URL followed by '/google_account/authentication'.
|
2017-01-03 19:43:01 +07:00
|
|
|
|
|
|
|
.. image:: media/google_calendar_credentials06.png
|
|
|
|
:align: center
|
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
- Go through the Consent Screen step by entering a product name
|
2017-12-12 22:36:26 +07:00
|
|
|
(e.g. Odoo Calendar). Feel free to check the customizations options
|
2017-05-17 21:26:02 +07:00
|
|
|
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
|
2017-12-12 22:36:26 +07:00
|
|
|
get the **Client Secret** as well. Both of them are required in Odoo.
|
2017-05-17 21:26:02 +07:00
|
|
|
|
2017-01-03 19:43:01 +07:00
|
|
|
.. image:: media/google_calendar_credentials07.png
|
|
|
|
:align: center
|
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
Setup in Odoo
|
|
|
|
=============
|
|
|
|
|
2017-12-12 22:36:26 +07:00
|
|
|
- Install the **Google Calendar** App from the *Apps* menu or by checking
|
|
|
|
the option in :menuselection:`Settings --> General Settings`.
|
2017-01-03 19:43:01 +07:00
|
|
|
|
|
|
|
.. image:: media/google_calendar_credentials08.png
|
|
|
|
:align: center
|
|
|
|
|
2017-05-17 21:26:02 +07:00
|
|
|
- Go to :menuselection:`Settings --> General Settings` and enter your
|
2017-12-12 22:36:26 +07:00
|
|
|
**Client ID** and **Client Secret** in Google Calendar option.
|
2017-01-03 19:43:01 +07:00
|
|
|
|
|
|
|
.. image:: media/google_calendar_credentials09.png
|
|
|
|
:align: center
|
2017-05-17 21:26:02 +07:00
|
|
|
|
|
|
|
- The setup is now ready. Open your Odoo Calendar and sync with Google.
|
|
|
|
The first time you do it you are redirected to Google to authorize
|
|
|
|
the connection. Once back in Odoo, click the sync button again.
|
|
|
|
You can click it whenever you want to synchronize your calendar.
|
|
|
|
|
|
|
|
.. image:: media/google_calendar_credentials10.png
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
As of now you no longer have excuses to miss a meeting!
|
|
|
|
|