Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
143 Lượt xem

Al minuto 5:00 del tercer video de Getting Started, llamado Google Calendar Sync. El instructor está colocando al URL de la base de datos de prueba en Authorized JavaScript Origins. ¿en donde sale la URL de la base de datos que estoy usando?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Gracias, funcionó correctamente. 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Step 1: Configure Google API Access

  1. Create a Google API Project:
    • Navigate to the Google API Console.
    • Click on Select a project and then New Project.
    • Name the project (e.g., "Odoo Sync") and click Create.​
  2. Enable the Google Calendar API:
    • In the left menu, select APIs & Services > Library.
    • Search for Google Calendar API, select it, and click Enable.​
  3. Configure OAuth Consent Screen:
    • In the left menu, go to APIs & Services > OAuth consent screen.
    • Choose External for user type (unless using a Google Workspace account).
    • Fill in the required fields: App name, User support email, and Developer contact information.
    • Click Save and Continue, skipping the Scopes step.
    • In the Test users section, add the email addresses that will use the integration.
    • Click Save and Continue to finalize.​
  4. Create OAuth Credentials:
    • Go to APIs & Services > Credentials.
    • Click Create Credentials > OAuth client ID.
    • Select Web application as the application type.
    • Name the credentials (e.g., "My Odoo Database").
    • Under Authorized JavaScript origins, add your Odoo instance URL (e.g., https://yourdomain.com).
    • Under Authorized redirect URIs, add https://yourdomain.com/google_account/authentication.
    • Click Create and note the Client ID and Client Secret.

Step 2: Configure Odoo

  1. Enable Google Calendar Integration:
    • In Odoo, navigate to Settings > General Settings.
    • Under Integrations, check the box for Google Calendar.
    • Enter the Client ID and Client Secret obtained from Google.
    • Click Save.
  2. Synchronize Calendars:
    • Open the Calendar app in Odoo.
    • Click on the Google sync button.
    • Authorize Odoo to access your Google Calendar when prompted.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 25
98
0
thg 4 25
117
1
thg 4 25
528
0
thg 3 25
379
1
thg 3 25
404