This module updates the attribute lines of product templates when
importing product variants.
Natively, product template attribute values are synced from the template
to its variants, but the reverse is not true:
In order to better test and illustrate this module, example CSV files
are provided in the example folder to import some variants (you will
need the demo data).
The demo data provides 2 attributes, each with 3 possible values:
- Cut: Short sleeves, Long sleeves, Tanktop
- Embroidery: Cheap, High quality, Average
At the beginning, the product template “T-shirt” declares only one
attribute with two values:
Cut: Short sleeves, Long sleeves

Its variants are:
- Cut: Short sleeves
- Cut: Long sleeves
First import
Go to the product variants page and import the first CSV file of the
example folder. It creates a new “T-shirt” variant:
Cut: Tanktop, Embroidery: Cheap.
The template “T-shirt” now declares a new attribute and two new values:
Cut: Short sleeves, Long sleeves, Tanktop
Embroidery: Cheap

Note: the new “Embroidery” attribute has a single value, so Odoo
automatically adds “Embroidery: Cheap” to all the existing variants
(the two original ones included). Indeed, a variant always carries
one value per attribute line of its template.
The variants are now:
- Cut: Short sleeves, Embroidery: Cheap
- Cut: Long sleeves, Embroidery: Cheap
- Cut: Tanktop, Embroidery: Cheap
Second import
Go to the product variants page and import the second CSV file of the
example folder. It creates 2 new “T-shirt” variants:
Cut: Short sleeves, Embroidery: Average, and
Cut: Long sleeves, Embroidery: High quality.
The template “T-shirt” now declares 2 attributes, each with 3 possible
values:
Cut: Short sleeves, Long sleeves, Tanktop
Embroidery: Cheap, High quality, Average

The resulting variants of the template are then:
- Cut: Short sleeves, Embroidery: Cheap
- Cut: Long sleeves, Embroidery: Cheap
- Cut: Tanktop, Embroidery: Cheap
- Cut: Short sleeves, Embroidery: Average
- Cut: Long sleeves, Embroidery: High quality

Note: even if both attributes are configured with
Variant Creation: Instantly, importing variants only creates the
imported combinations. For example, no
Cut: Tanktop, Embroidery: Average variant is created.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
feedback.
Do not contact contributors directly about support or help with technical issues.