Community mailing list archives

community@mail.odoo.com

Re: Variant and attributs

by
Martin Trigaux (mat)
- 11/05/2015 11:30:27
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.

Regards

-- 
Martin Trigaux
Odoo (Formerly OpenERP)
https://odoo.com
https://github.com/mart-e