Skip to Content
Menu
This question has been flagged
1 Reply
1091 Views

How to integrate Google Images in Odoo?

Avatar
Discard

Would this method work to then apply your own image that you've uploaded to google drive for example to 100+ products that require the same image?


Thanks

Author Best Answer

I. Enabling Google Images in Odoo:

  1. Navigate to General Settings: In Odoo, go to Settings -> General Settings.
  2. Enable Google Images: Locate the "Google Images" option.
  3. Enable and Save: Check the box to enable "Google Images" and click Save.
  4. Access Credentials: After saving, return to the "Google Images" section in General Settings. You will see fields requiring credential updates.

 

II. Obtaining the Google API Key:

  1. Access Google Cloud Platform: Go to Google Cloud Platform API & Services.
  2. Navigate to Credentials: In the left-hand navigation menu, select Credentials.
  3. Create Credentials: Click the Create Credentials button.
  4. Select API Key: Choose API key from the dropdown menu.
  5. Copy API Key: A new API key will be generated. Copy this key.
  6. Update Odoo: In Odoo, paste the copied API key into the "API Key" field under the "Google Images" settings.


III. Obtaining the Search Engine ID (Custom Search Engine):

  1. Search for Custom Search API: In the Google Cloud Console search bar, type "Custom Search API".
  2. Select Custom Search API: Select the Custom Search API from the search results.
  3. Enable the API: Click the Enable button. This will redirect you to a confirmation screen.
  4. Go to Programmable Search Engine: Navigate to Google Programmable Search Engine.
  5. Get Started: Click the Get Started button.
  6. Add a New Search Engine: Click the Add button.
  7. Configure Search Engine (Important):
    • Search specific sites or pages (Optional): If you want to restrict image searches to specific websites, select this option and enter the website URLs.
    • Enable Image search: Ensure the "Image search" option is enabled.
    • Enable Safe Search: Enable "Safe Search" to filter explicit content (recommended).
  8. Create the Search Engine: Click Create.
  9. Copy Search Engine ID: Locate and copy the Search Engine ID (it is usually displayed in a highlighted or clearly labeled section).
  10. Update Odoo: Paste the copied Search Engine ID into the "Search Engine ID" field under the "Google Images" settings in Odoo.

 

IV. Finalizing Odoo Configuration:

  1. Save Odoo Settings: In Odoo, click Save in the "Google Images" settings.
  2. Access Product Fetch Option: The "Fetch Images from Google" option should now be available in the product master (both list and form views). 

V. Important Notes and Limitations:

  • Processing Criteria: Only products or variants with a barcode but no image will be processed. If a product has multiple variants, only those that meet these criteria will be processed.
  • Initial Image Fetch: Only the first 10 images are fetched immediately. If you select more than 10, the remaining images are fetched as a background job.
  • Background Job Processing: The background job processes approximately 100 images per minute.
  • Google Quota: If the quota authorized by Google (either with a free or paid plan) is reached, the background job will pause for 24 hours and resume the following day.


Avatar
Discard
Related Posts Replies Views Activity
1
Aug 24
4054
0
Aug 22
2286
2
May 22
9651
0
Mar 15
3074
1
Oct 24
2227