Product Images
product_images · odoo/odoo
Renamed to product_multi_image in 8.0
Replaces
product_images_olbs (7.0)OCA/product-attribute 7.0 → odoo/odoo 15.0–18.0
Health
61/100
fair
-
Security25/25No findings
-
Activity6/25Last human commit 25 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.49 MB
Module directory on disk
Code analysis
0 migration notes
4 models
2 views
0 HTTP endpoints
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_selectedIntegerreadonly=Truestring='Number of selected products' -
nb_products_to_processIntegerreadonly=Truestring='Number of products to process' -
nb_products_unable_to_processIntegerreadonly=Truestring='Number of product unprocessable' -
products_to_processMany2many → product.productcomodel_name='product.product'help='The list of selected products that meet the criteria (have a barcode and no image)'
-
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_pendingBooleanhelp='Whether an image must be fetched for this product. Handled by a cron.'
No public methods.
New fields (2)
-
google_custom_search_keyCharconfig_parameter='google.custom_search.key'string='Google Custom Search API Key' -
google_pse_idCharconfig_parameter='google.pse.id'string='The identifier of the Google Programmable Search Engine'
No public methods.
Loading…
Loading…
Loading…