Repository
odoo/odoo · module folder
Module version
1.0
Category
Technical
Folder size
0.49 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-15 22:24:35
Authors
Maintainers
None
Committers
Raphael Collet, Odoo Translation Bot, Odoo Online, Tiffany Chang (tic), Loan (LSE), Louis (wil)
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
Description
Automatically set product images based on the barcode
=====================================================

This module integrates with the Google Custom Search API to set images on products based on the
barcode.
    

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_fetch_image_wizard_view_form product.fetch.image.wizard.view product.fetch.image.wizard form New
res_config_settings_view_form res.config.settings.view.form.inherit.product.images res.config.settings form Inherits base_setup.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • nb_products_selected Integer
    readonly=True string='Number of selected products'
  • nb_products_to_process Integer
    readonly=True string='Number of products to process'
  • nb_products_unable_to_process Integer
    readonly=True string='Number of product unprocessable'
  • products_to_process Many2many → product.product
    comodel_name='product.product' help='The list of selected products that meet the criteria (have a barcode and no image)'
Public methods (2)
  • action_fetch_image(self)
    Fetch the images of the first ten products and delegate the remaining to the cron. The first ten images are immediately fetched to improve the user experience. This way, they can immediately browse the processed products and be assured that the task is running well. Also, if any error occurs, it can be thrown to the user. Then, a cron job is triggered to be run as soon as possible, unless the daily request limit has been reached. In that case, the cron job is scheduled to run a day later. :return: A notification to inform the user about the outcome of the action :rtype: dict
  • default_get(self, fields_list)
    @api.model

New fields (1)
  • image_fetch_pending Boolean
    help='Whether an image must be fetched for this product. Handled by a cron.'
Public methods (0)

No public methods.

New fields (2)
  • google_custom_search_key Char
    config_parameter='google.custom_search.key' string='Google Custom Search API Key'
  • google_pse_id Char
    config_parameter='google.pse.id' string='The identifier of the Google Programmable Search Engine'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…