Variant Image Sync
Set the pictures once on White / S and copy them to every White variant, by colour or any attribute you choose per product.
| Odoo | 16.0, 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Product (Sales). Extra variant media need eCommerce, which is optional |
| Licence | OPL-1, 29 EUR |
| Tests | 12 automated, run on every version |
| Module | variant_ |
The situation
A T-shirt in 3 colours and 3 sizes has 9 variants. In standard Odoo you open White / S, upload the front picture and the back picture, then do the same on White / M and White / L, and again for Black and Navy. Miss one and that size shows the generic product picture in the shop and on quotations.
Each product gets a Sync Images By attribute (Color is picked for you when the product has one). Upload the pictures on one variant and click the button, or open the Sync Variant Images wizard and do every colour from one grid. Variants with the same colour get the same main image and extra media, and running it again creates nothing new.
What it adds
Getting started
Open Apps, clear the Apps filter, search for Variant Image Sync and click Activate. It needs only the Product module (installed with Sales, Purchase, Inventory or eCommerce). With eCommerce installed, extra variant media are synced as well.
Apps › variant_image_attribute_sync › Activate
Open a product with variants and go to the Attributes & Variants tab. Check Sync Images By (Color is preselected when the product has it) and tick Auto-sync Variant Images if you want copies on save. The Missing Images button opens the Variants Missing Images list, shown below the form.
Sales › Products › Products › open a product › Attributes & Variants
Day to day you add pictures on one variant per colour. On the variant form, click Copy images to variants with the same Color: White and the other White sizes get the main image and the extra media. For a new collection, open Sync Variant Images on the product: upload one image per colour or pick the variant to copy from, check the Result column and click Sync Images.
Fine print
Log
Need images synced by two attributes at once, like Color and Material?
Write to us with an example product and we'll tell you what it takes.
Email odoo.expert.111@gmail.com
Also by Awins
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