Google 이미지를 활용한 품목 이미지

Having appropriate product images in Odoo is useful for a number of reasons. However, if a lot of products need images, assigning them can become incredibly time-consuming.

Fortunately, by configuring the Google Custom Search API within an Odoo database, finding product images for products (based on their barcode) is extremely efficient.

설정

In order to utilize Google Custom Search within an Odoo database, both the database and the Google API must be properly configured.

참고

Free Google accounts allow users to select up to 100 free images per day. If a higher amount is needed, a billing upgrade is required.

Google API 대시보드

  1. Google 클라우드 플랫폼 API 및 서비스 <https://console.developers.google.com/>`_ 페이지로 이동하여 Google 맞춤 검색 API 자격 증명을 생성합니다. 그런 다음 Google 계정으로 로그인합니다. 그 다음 동의 과정으로 서비스 약관 확인란에 표시한 후 :guilabel:`동의하고 계속하기`를 클릭합니다.

  2. 여기에서 자격 증명을 저장할 API 프로젝트를 선택 (또는 생성)합니다. 기억하기 쉬운 프로젝트 이름`을 지정하고 :guilabel:`위치 (가능한 경우)을 선택한 다음 :guilabel:`만들기`를 클릭합니다.

  3. 왼쪽 사이드바에서 자격 증명 옵션을 선택한 상태에서 :guilabel:`자격 증명 만들기`를 클릭하고 드롭다운 메뉴에서 :guilabel:`API 키`를 선택합니다.

    Google 클라우드 플랫폼의 API 및 서비스 페이지
  4. 이렇게 하면 API 키 생성 팝업 창이 표시되며, 여기에는 사용자 지정 :guilabel:`API 키`가 포함되어 있습니다. 팝업 창에서 :guilabel:`API 키`를 복사하여 저장하여 나중에 사용할 수 있습니다. 키를 복사한 후 (나중에 사용할 수 있도록 저장) :guilabel:`닫기`를 클릭하면 팝업 창이 사라집니다.

    The API key created pop-up window that appears.
  5. On this page, search for Custom Search API, and select it.

    Search bar containing "Custom Search API" on Google Cloud Platform.
  6. From the Custom Search API page, enable the API by clicking Enable.

    "Custom Search API" page with Enable button highlighted on Google Cloud Platform.

Google Programmable Search dashboard

  1. Next, go to Google Programmable Search Engine, and click either of the Get started buttons. Log in with a Google account, if not already logged in.

    Google Programmable Search Engine page with the Get Started buttons.
  2. 새 검색 엔진 만들기 양식에서 검색 엔진 제목과 검색할 내용을 입력한 후 이미지 검색보안 검색 을 활성화합니다.

    Create new search engine form that appears with search engine configurations.
  3. Validate the form by clicking Create.

  4. Doing so reveals a new page with the heading: Your new search engine has been created.

    The Your New Search Engine Has Been Created page that appears with copy code.
  5. 이 페이지에서 사용자 지정 을 클릭하여 전체보기 ‣ 기본 페이지를 엽니다. 그런 다음 검색 엔진 ID 항목에 ID를 복사합니다. 해당 ID는 Odoo 환경 설정을 할 때 필요합니다.

    Basic overview page with search engine ID field.

Odoo

  1. In the Odoo database, go to the Settings app and scroll to the Integrations section. From here, check the box beside Google Images. Then, click Save.

    The Google Images setting in the Odoo Settings app page.
  2. Next, return to the Settings app, and scroll to the Integrations section. Then, enter the API Key and Search Engine ID in the fields beneath the Google Images feature.

  3. :guilabel:`저장`을 클릭합니다.

Product images in Odoo with Google Custom Search API

Odoo에서는 모든 품목 혹은 품목 세부 옵션에서 품목에 대한 이미지를 추가할 수 있습니다. 해당 작업은 품목 페이지에 액세스할 수 있는 모든 Odoo 애플리케이션 (예: 판매 앱, 재고 관리 앱 등)에서 진행할 수 있습니다.

Below is a step-by-step guide detailing how to utilize the Google Custom Search API to assign images to products in Odoo using the Odoo Sales application:

  1. 판매 앱에서 품목 페이지로 이동합니다 (판매 앱 ‣ 품목 ‣ 품목). 또는 판매 앱에서 품목 세부 옵션 페이지로 이동합니다 (판매 앱 ‣ 품목 ‣ 품목 세부 옵션).

  2. Select the desired product that needs an image.

    참고

    Only products (or product variants) that have a barcode, but not an image, are processed.

    If a product with one or more variants is selected, each variant that matches the aforementioned criteria is processed.

  3. Click the Action ⚙️ (gear) icon on the product page, and select Get Pictures from Google Images from the menu that pops up.

    The Get Pictures from Google Images option from the Action drop-down menu in Odoo.
  4. On the pop-up window that appears, click Get Pictures.

    The pop-up that appears in which the user should click Get Picture in Odoo Sales.
  5. Once clicked, the image(s) will appear incrementally.

    참고

    Only the first 10 images are fetched immediately. If you selected more than 10, the rest are fetched as a background job.

    1분에 약 100개의 이미지를 백그라운드 작업에서 처리합니다. Google에서 승인한 할당량 (무료 또는 유료 요금제 포함)에 도달하면 백그라운드 작업이 24시간 동안 보류됩니다. 그런 다음 전날 중단된 부분부터 계속 진행됩니다.