일정을 Google 캘린더와 동기화하기

Google 캘린더를 Odoo와 동기화하여 양 쪽 플랫폼 모두에서 회의를 확인하고 관리하세요 (양방향으로 업데이트 진행). 통합 기능으로 일정을 정리할 수 있으므로 회의를 놓치게 되는 일이 없게 됩니다.

Google 설정하기

프로젝트 선택 (또는 생성)하기

새로운 Google API 프로젝트를 생성하여 Google 캘린더 API를 활성화합니다. 먼저, ‘Google API 콘솔 <https://console.developers.google.com>`_로 이동하여 Google 계정에 로그인합니다.

참고

이 페이지를 처음 방문하는 경우 Google에서 사용자에게 국가를 입력하고 서비스 약관에 동의하라는 메시지를 표시합니다. 드롭다운 목록에서 국가를 선택하고 :abbr:`ToS (서비스 약관)`에 동의합니다.

다음으로, :guilabel:`프로젝트 선택`에서 OAuth 인증을 구성하고 자격 증명을 저장할 API 프로젝트를 선택 (또는 생성)합니다. guilabel:`새 프로젝트`를 클릭하세요.

자격 증명을 저장할 새로운 API 프로젝트를 만듭니다.

API 프로젝트를 쉽게 식별할 수 있도록 ‘Odoo 동기화’와 같이 이름을 명확하게 지정합니다.

Google 캘린더 API 활성화하기

이제 왼쪽 메뉴에서 :guilabel:`사용하는 API 및 서비스`를 클릭합니다. guilabel:`검색창`이 나타나지 않는 경우에는 :guilabel:`사용하는 API 및 서비스`를 다시 선택합니다.

API 프로젝트에서 API 및 서비스를 활성화합니다.

그런 다음 검색창에서 `Google 캘린더 API`를 찾은 후 검색 결과에서 :guilabel:`Google 캘린더 API`를 선택합니다. guilabel:`활성화`를 클릭합니다.

Google 캘린더 API를 활성화합니다.

자격 증명 생성

구글 캘린더를 Odoo와 연결하려면 ‘클라이언트 ID*와 *클라이언트 비밀번호*가 필요합니다. 이는 Google 콘솔의 마지막 단계입니다. 먼저 왼쪽 메뉴에서 :guilabel:`자격 증명`을 클릭합니다. 그런 다음 :guilabel:`자격 증명 생성`을 클릭하여 :guilabel:`OAuth 클라이언트 ID`를 선택하면 Google이 자격증명 만들기 가이드가 열립니다.

OAuth 클라이언트 ID 생성`의 :guilabel:`애플리케이션 유형 필드에 `웹사이트 애플리케이션`을 선택하고, :guilabel:`이름`에 `내 Odoo 데이터베이스`를 입력합니다.

  • 인증된 자바스크립트 출처`에서 :guilabel:`+ URI 추가`를 클릭하고 회사의 Odoo 전체 :abbr:`URL (유니폼 리소스 로케이터) 주소를 입력합니다.

  • 인증된 리디렉션 URI 섹션에서 + URI 추가`를 클릭하고 회사의 Odoo :abbr:`URL (유니폼 리소스 로케이터) 주소 뒤에 `/google_account/authentication`을 입력합니다. 마지막으로 :guilabel:`만들기`를 클릭합니다.

인증된 자바스크립트 출처와 인증된 리디렉션 URI를 추가합니다.

:guilabel:`클라이언트 ID`와 :guilabel:`클라이언트 비밀번호`가 표시되면 메모장에 복사합니다.

Odoo에서 설정하기

*클라이언트 ID*와 *클라이언트 비밀번호*가 확인되었으면 Odoo 데이터베이스를 열고 설정 ‣ 일반 설정 ‣ 통합 ‣ 구글 캘린더`로 이동합니다. :guilabel:`Google 캘린더 옆의 확인란에 표시합니다.

일반 설정의 Google 캘린더 확인란.

다음으로, Google 캘린더 API 자격 증명 페이지에서 *클라이언트 ID*와 *클라이언트 비밀번호*를 복사하여 Google 캘린더 확인란 아래에 있는 필드에 붙여넣습니다. 그런 다음 :guilabel:`저장`을 클릭합니다.

Odoo에서 캘린더 동기화하기

마지막으로, Odoo에서 캘린더 앱을 열고 Google 동기화 버튼을 클릭하여 Google 캘린더를 Odoo와 동기화합니다.

Odoo 캘린더에서 Google 동기화 버튼을 클릭하면 Google 캘린더가 Odoo와 동기화됩니다.

참고

Google 캘린더를 Odoo와 처음 동기화하면 페이지가 Google 계정으로 리디렉션됩니다. 액세스 권한이 있는 이메일 계정`을 선택한 다음 :guilabel:`계속 (앱이 확인되지 않은 경우)를 선택하고 마지막으로 계속 (데이터 전송에 대한 권한 부여)을 선택합니다.

Odoo에 Google 캘린더 액세스 권한을 부여합니다.

이제 Odoo 캘린더가 구글 캘린더와 성공적으로 동기화되었습니다!

경고

Odoo에서는 Google 캘린더를 사용자의 프로덕션 데이터베이스와 동기화하기 전에, 테스트 데이터베이스와 테스트 이메일 주소 (다른 용도로 사용하지 않을 것)에서 Google 캘린더 동기화를 테스트하는 것을 적극 권장합니다.

Google 캘린더를 Odoo 캘린더와 동기화하면 다음과 같이 활용할 수 있습니다:

  • Odoo에서 이벤트를 생성하면 Google에서 모든 이벤트 참석자에게 초대를 보냅니다.

  • Odoo에서 이벤트를 삭제하면 Google에서 모든 이벤트 참석자에게 취소 알림을 보냅니다.

  • 이벤트에 연락처를 추가하면 Google에서 모든 이벤트 참석자에게 초대를 보냅니다.

  • 이벤트에서 연락처를 삭제하면 Google에서 모든 이벤트 참석자에게 취소 알림을 보냅니다.

초대 이메일을 보내라는 메시지에 :guilabel:’보내지 않음’ 을 선택하면 알림을 보내지 않고도 Google 캘린더 에서 이벤트를 생성할 수 있습니다.

문제 해결 동기화

There may be times when the Google Calendar account does not sync correctly with Odoo. Sync issues can be seen in the database logs.

이러한 경우에는 계정 문제를 해결해야 합니다. 계정 초기화 버튼으로 초기화할 수 있으며, 이 버튼은 설정 앱 ‣ 사용자 관리 로 이동하여 사용할 수 있습니다. 그런 다음 캘린더를 수정할 사용자를 선택하고 캘린더 탭을 클릭합니다.

Reset buttons highlighted on the calendar tab of the user.

Next, click Reset Account under the correct calendar.

Reset options

The following reset options are available for troubleshooting Google calendar sync with Odoo:

Google calendar reset options in Odoo.

User’s Existing Events:

  • Leave them untouched: no changes to the events.

  • Delete from the current Google Calendar account: delete the events from Google Calendar.

  • Delete from Odoo: delete the events from the Odoo calendar.

  • Delete from both: delete the events from both Google Calendar and Odoo calendar.

Next Synchronization:

  • Synchronize only new events: sync new events on Google Calendar and/or Odoo calendar.

  • Synchronize all existing events: sync all events on Google Calendar and/or Odoo calendar.

Click Confirm after making the selection to modify the user’s events and the calendar synchronization.

Google OAuth FAQ

때때로 환경 설정이 잘못될 수 있으며 문제를 해결하려면 트러블 슈팅이 필요하게 됩니다. 다음은 Odoo에서 Google 캘린더 사용하도록 환경 설정을 할 때 발생할 수 있는 가장 일반적인 오류입니다.

Production vs. testing publishing status

Choosing Production as the Publishing Status (instead of Testing) displays the following warning message:

OAuth is limited to 100 sensitive scope logins until the OAuth consent screen is verified. This may require a verification process that can take several days.

To correct this warning, navigate to the Google API Platform. If the Publishing Status is In Production, click Back to Testing to correct the issue.

No test users added

If no test users are added to the OAuth consent screen, then an Error 403: access_denied populates.

403 Access Denied Error.

To correct this error, return to the OAuth consent screen, under APIs & Services, and add test users to the app. Add the email to be configured in Odoo.

Application Type

When creating the credentials (OAuth Client ID and Client Secret), if Desktop App is selected for the Application Type, an Authorization Error appears (Error 400:redirect_uri_mismatch).

Error 400 Redirect URI Mismatch.

To correct this error, delete the existing credentials, and create new credentials, by selecting Web Application for the Application Type.

Then, under Authorized redirect URIs, click ADD URI, and type: https://yourdbname.odoo.com/google_account/authentication in the field, being sure to replace yourdbname in the URL with the real Odoo database name.

Ensure that the domain (used in the URI: https://yourdbname.odoo.com/google_account/authentication) is the exact same domain as configured in the web.base.url system parameter.

Access the web.base.url by activating developer mode, and navigating to Settings app ‣ Technical header menu ‣ Parameters section ‣ System Parameters.