10.72

v 17.0 Third Party 3
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 235
Technical Name anb_img_zip_importation
LicenseOPL-1
Websitehttp://www.anubia.es
Versions 17.0 15.0 16.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 235
Technical Name anb_img_zip_importation
LicenseOPL-1
Websitehttp://www.anubia.es
Versions 17.0 15.0 16.0

Image Zip Importation to any Model

Import images compressed in a Zip file to any model and field

Translated to:
Spanish English

Description

Summary

This module allows to import images compressed in a ZIP file to any model and field, even if the model or/and field are created by a 3rd party module or by yourself though code or interface. Image files supported: JPG, PNG and BMP.

Installation

To install this module ...

  • You must have installed or available to install the module base.

Usage

To use this module ...

  • In your computer, put all the images you want to import (JPG, PNG and/or BMP) in a folder and compress it with ZIP.
  • Then, go to Odoo interface and activate the Developer Mode.
  • Go to Settings > Technical. In the Database Structure section, you will see a new feature: Import Images from ZIP. Click on it.
  • A wizard window will be opened. Select the ZIP file in Image Zip file field and the model where you want to import the images in the Model field.
  • Once you select the model, fill in the Image Field field. It will only show the binary fields of the model you have just selected in the previous step. This is the field where the images will be stored.
  • Once you select the model, fill in the Identity Field field. It will only show the character fields of the model you have just selected in the previous step. This field is the key. Each one of the image files must have a name which matches the value of this field.
  • Click on Import.

Example of use

  • You want to import product images. You have two images: COD4532.png and ATR2904.png.
  • You have to copy those files and paste them into a folder. Then compress the folder with ZIP. Let's imagine that the resultant file is product_images.zip.
  • Go to Odoo interface and activate the Developer Mode.
  • Go to Settings > Technical. In the Database Structure section, go to Import Images from ZIP.
  • A wizard window will be opened. In the Image Zip file field, select product_images.zip.
  • In the Model field, select Product Template (since you are importing product images in this case of use).
  • Fill in the Image Field field with Image (product.template).
  • Fill in the Identity Field field with Internal Reference (product.template).
  • Click on Import.
  • Suppose you have a product stored in your database with internal reference COD4532. Since the name of one of the files is COD4532.png, Odoo will find that product with that internal reference and store the image in its Image field.
  • Suppose you do not have a product stored in your database with internal reference ATR2904. Since the name of one of the files is ATR2904.png, Odoo will not find any products with that internal reference and therefore it will skip the image file.
  • At the end of the procedure, you will get a message displaying every result (what happened to each file).

Credits

Contributors

Maintainer

This module is maintained by Anubia Soluciones en la Nube, S.L.
It has a 30 days period of free support, in case of bugs or issues (except for data recovery), and as long as there are not other third party modules installed which are modifying the dependencies of this module. Send any question or issue you have to the email address <anubia@anubia.es>. For more information and questions, please visit: http://anubia.es/en.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.