Good morning.
I am using Odoo 16 community, and I am importing products with variants, but I also need to indicate certain exclusions for some combinations of variants (for the same product that I am importing).
For example, for a specific product, for the size:large variant, I want to exclude the color:white variant.
The csv works fine, it imports the products and their variants, but I have no idea how to indicate the "exclude for" column.
This is the structure of the csv:
id | name | attribute_line_ids / id | attribute_line_ids / attribute_id | attribute_line_ids / value_ids | attribute_line_ids / product_template_value_ids / id | attribute_line_ids / product_template_value_ids / product_attribute_value_id |
t001 | t-shirt | t001_a | size | short,medium,large | t001a_1 | short |
t001a_2 | medium | |||||
t001a_3 | large | |||||
t001_b | color | black,white,red | t001b_1 | black | ||
t001b_2 | white | |||||
t001b_3 | red |
My idea is to add a column for the "exclude for", but I can't get it to work.
If I export the "exclude for" field of a hand-created product, the value is this:
attribute_line_ids/product_template_value_ids/exclude_for |
product.template.attribute.exclusion,1 |
Any ideas?
Thanks in advance!