Hello all,
Look here, for each product variants, values in the « attributes » column are displayed with this format « Attribute name : Attribute value ».
But here, in the Description field, we only see the « Attribute value ». But we ALSO want the format « Attribute name : Attribute value ».
For example, in image below, we would want this in the description field : « L510 - Chemise à manches courtes pour femme perso (Couleur du tissu : Bleu Royal) »
Please, ideas?
UPDATE #1
The name of the attribute is stocked in the model product.attribute. In the field name.
How to display this name in the description above?
UPDATE #2
It is clear that in the file /home/odoo-test/addons/product/product.py, we have this place that recup the name value in product.attribute.value. How to recup the name in product.attribute also?
variant = ", ".join([v.name for v in product.attribute_value_ids])
name = variant and "%s (%s)" % (product.name, variant) or product.name