@@ -29,14 +29,14 @@ in, and store credentials. Click :guilabel:`New Project`.
29
29
.. image :: google/new-api-project.png
30
30
:alt: Create a new API project to store credentials.
31
31
32
- .. tip ::
33
- Give the API Project a clear name, like "Odoo Sync", so it can be easily identified .
32
+ Give the API project a clear name, like ` Odoo Sync `, so it can be identified. Then click the
33
+ :guilabel: ` Create ` button .
34
34
35
35
Enable Google calendar API
36
36
--------------------------
37
37
38
38
Now, click on :guilabel: `Enabled APIs and Services ` in the left menu. Select :guilabel: `Enabled APIs
39
- and Services ` again if the :guilabel: `Search bar ` doesn't appear.
39
+ and Services ` again if the :guilabel: `Search bar ` does not appear.
40
40
41
41
.. image :: google/enable-apis-services.png
42
42
:alt: Enable APIs and Services on the API Project.
@@ -51,7 +51,7 @@ OAuth consent screen
51
51
--------------------
52
52
53
53
Now that the API project has been created, OAuth should be configured. To do that, click on
54
- :guilabel: `OAuth consent ` in the left menu and then select the :guilabel: `User Type ` .
54
+ :guilabel: `OAuth consent screen ` in the left menu, then click the :guilabel: `Get started ` button .
55
55
56
56
.. warning ::
57
57
*Personal * Gmail Accounts are only allowed to be **External ** User Type, which means Google may
@@ -61,26 +61,38 @@ Now that the API project has been created, OAuth should be configured. To do tha
61
61
Note, as well, that while the API connection is in the *External * testing mode, then no approval
62
62
is necessary from Google. User limits in this testing mode is set to 100 users.
63
63
64
- In the second step, :guilabel: `OAuth Consent Screen `, type `Odoo ` in the :guilabel: `App name ` field,
65
- select the email address for the :guilabel: `User support email ` field, and type the email address
66
- for the :guilabel: `Developer contact information ` section. Then, click :guilabel: `Save and
67
- Continue `.
64
+ Follow the proceeding steps, in order:
65
+
66
+ #. In :guilabel: `App Information `, type `Odoo ` in the :guilabel: `App name ` field, then enter the
67
+ email address for the :guilabel: `User support email ` field and click the :guilabel: `Next ` button.
68
+ #. In :guilabel: `Audience `, select :guilabel: `External `, then click the :guilabel: `Next ` button.
69
+ #. In :guilabel: `Contact Information `, enter the email again, then click the :guilabel: `Next `
70
+ button.
71
+ #. In :guilabel: `Finish `, tick the checkbox to agree to :guilabel: `Google API Services: User
72
+ Policy. ` For the last step, click the :guilabel: `Create ` button.
68
73
69
- Skip the third step, :menuselection: `Scopes `, by clicking :guilabel: `Save and Continue `.
74
+ Authorized domain setup
75
+ -----------------------
70
76
71
- Next, if continuing in testing mode (External), add the email addresses being configured under the
72
- :guilabel: `Test users ` step, by clicking on :guilabel: `Add Users `, and then the :guilabel: `Save and
73
- Continue ` button. A summary of the app registration appears.
77
+ Next, any domains set to appear on the consent screen or in an OAuth client's configuration must be
78
+ pre-registered. To do so, navigate to :guilabel: `Branding ` in the left menu. In the
79
+ :guilabel: `Authorized domains ` section, click the :guilabel: `Add domain ` button to create a field to
80
+ enter an authorized domain. Enter a domain, such as `odoo.com `, then click the :guilabel: `Save `
81
+ button at the bottom of the page.
74
82
75
- Finally, scroll to the bottom, and click on :guilabel: `Back to Dashboard `.
83
+ Test users
84
+ ----------
76
85
77
- Now, the OAuth consent has been configured, and it's time to create credentials.
86
+ To give users the ability to sync with personal Gmail accounts, they must be set as a test user.
87
+ Setup test users by going to :guilabel: `Audience ` in the left-side menu and clicking the
88
+ :guilabel: `Add users ` button in the :guilabel: `Test users ` section. Enter any desired user emails,
89
+ and click the :guilabel: `Save ` button.
78
90
79
91
Create credentials
80
92
------------------
81
93
82
94
The *Client ID * and the *Client Secret * are both needed to connect Google Calendar to Odoo. This is
83
- the last step in the Google console. Begin by clicking :guilabel: `Credentials ` in the left menu.
95
+ the last step in the Google console. Begin by clicking :guilabel: `Clients ` in the left menu.
84
96
Then, click :guilabel: `Create Credentials `, and select :guilabel: `OAuth client ID `, Google will open
85
97
a guide to create credentials.
86
98
@@ -96,7 +108,7 @@ Under :menuselection:`Create OAuth Client ID`, select :guilabel:`Website applica
96
108
.. image :: google/uri.png
97
109
:alt: Add the authorized JavaScript origins and the authorized redirect URIs.
98
110
99
- A :guilabel: `Client ID ` and :guilabel: `Client Secret ` will appear, copy these to a notepad .
111
+ A :guilabel: `Client ID ` and :guilabel: `Client Secret ` will appear, save these somewhere safe .
100
112
101
113
Setup in Odoo
102
114
=============
@@ -129,8 +141,8 @@ button to sync Google Calendar with Odoo.
129
141
.. note ::
130
142
When syncing Google Calendar with Odoo for the first time, the page will redirect to the Google
131
143
Account. From there, select the :guilabel: `Email Account ` that should have access, then select
132
- :guilabel: `Continue ` (should the app be unverifed ), and finally select :guilabel: `Continue ` (to
133
- give permission for the transfer of data)` .
144
+ :guilabel: `Continue ` (should the app be unverified ), and finally select :guilabel: `Continue ` (to
145
+ give permission for the transfer of data).
134
146
135
147
.. image :: google/trust-odoo.png
136
148
:alt: Give Odoo permission to access Google Calendar.
0 commit comments