Skip to content

Product Image URL

Overview

The Product Image URL module lets you set product images by pasting a URL instead of uploading a file. It supports both the main product image and extra product images (for eCommerce galleries), with built-in duplicate detection and batch syncing.

This is especially useful when migrating products from another platform, syncing images from a manufacturer's website, or when product images are hosted externally.

Key Features

  • Main Image from URL -- Paste a URL on the product template or variant form to instantly set the product image
  • Extra Images from URLs -- Provide a comma-separated list of URLs to batch-import additional product images
  • Duplicate Detection -- Extra image sync skips URLs that have already been imported
  • Sync Status Reporting -- Displays a summary of how many images were added, skipped, or failed
  • Variant Support -- Set variant-specific images by URL on the product variant form

Installation

Requirements

Requirement Details
Odoo Version 18.0 Community or Enterprise
Dependencies website_sale

Installation

  1. Place the product_image_url module folder in your Odoo addons path
  2. Update the module list: Apps > Update Apps List
  3. Search for "Product Images from URL" and click Install

Usage

Setting the Main Product Image

  1. Open a product template form
  2. Find the Image URL field (below the Internal Category field)
  3. Paste an image URL (e.g., https://example.com/product-photo.jpg)
  4. The image downloads automatically and is set as the product's main image

The field triggers an onchange event -- as soon as you paste or type a valid URL and move to another field, the image is fetched and applied. If the download fails or the URL does not point to a valid image, a warning message appears.

Tip

The URL must start with http:// or https:// and the server must return a response with an image/* content type. URLs pointing to HTML pages or non-image files will be rejected.

Setting Variant-Specific Images

For products with variants, you can set a different image for each variant:

  1. Open the specific product variant form (not the template)
  2. Find the Image URL field
  3. Paste the variant-specific image URL
  4. The image is set as the variant's image (image_variant_1920), which takes precedence over the template image

Importing Extra Product Images

The module supports batch-importing multiple images for eCommerce galleries:

  1. Open a product template form
  2. Scroll to the Import Images from URLs section (above the eCommerce Media section)
  3. In the Extra Image URLs field, paste a comma-separated list of image URLs:

    https://example.com/img1.jpg, https://example.com/img2.jpg, https://example.com/img3.jpg
    
  4. Click the Sync Images from URLs button

  5. The module downloads each image and creates extra product image records

After syncing, a Sync Status message appears showing the results:

Status Meaning
X added New images successfully downloaded and created
X already existed URLs that were previously imported (skipped)
X failed URLs that could not be downloaded or returned non-image content

Duplicate Detection

Each extra image record stores the source URL it was fetched from. When you sync again, URLs that already have a corresponding image record are skipped. This means you can add new URLs to the list and re-sync without creating duplicates.

Supported Image Formats

Any format with an image/* content type is supported, including:

  • JPEG / JPG
  • PNG
  • GIF
  • WebP
  • SVG

The download has a 15-second timeout. Images that take longer to download will fail gracefully with a log warning.


  • Product Addons -- Adds MSRP, MAP, SKU, and Brand fields to products
  • Products App -- Adds a top-level Products menu for quick catalog access