Community mailing list archives

Re: Variant and attributs

walid redwan
- 11/05/2015 12:26:23

When I create new template with 3 attributes. each one has 3 values,  that means 27 variants will be created , each variant must has 3 attributes,
What can I do to make one these variants has two attributes not three

On 05/11/2015 6:34 pm, "Martin Trigaux" <> wrote:
On 05/11/15 17:07, Walid Redwan wrote:
> I need to modify the relation between variant and it's
> attributes(readonly *attribute_value_ids*), because i believe that we
> must be able to remove any one which is selected by product template
> and not needed for this variant.

I am not sure to understand either but let's make a lucky guess:

In Odoo the variants are automatically generated based on the attributes 
and their values.

If you have 2 attributes (e.g. color and size) with two values (color: 
black&white, size:small&big), you will end up with 4 variants. If you 
add or delete more attributes later, the number of variants will adapt.
As you may not want to sell all product variants, you can configure them 
to adapt the visibility or the active field.

So in Odoo the variants are directly linked to the attributes and I am 
not sure what you are trying to achieve but I wouldn't advise you to try 
to bypass that.

But if you explain your use case, maybe we can find a better solution.


Martin Trigaux
Odoo (Formerly OpenERP)

Post to: