[FIX] sale_product_configurator: add tooltip to color ptav

Before this commit, the color attribute values were shown without
textual information about the color which could lead to misleading
information about the color.

Now, the name will be shown when the color is hover with the mouse
cursor.

opw-3423073

closes odoo/odoo#132188

X-original-commit: b77b37df78e0ca2f39915020c32a3ed0c508695b
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
This commit is contained in:
Valentin Chevalier
2023-08-17 16:37:18 +02:00
parent ff3c554088
commit 6c007fee1c
@@ -93,6 +93,7 @@
<li t-foreach="this.props.attribute_values" t-as="ptav" t-key="ptav.id"
class="list-inline-item me-1">
<label
t-att-title="ptav.name"
t-attf-style="background-color:#{ptav.is_custom ? '' : ptav.html_color}"
t-att-class="{'o_sale_product_configurator_ptav_color': true, 'active': ptav.id === this.props.selected_attribute_value_id, 'custom_value': ptav.is_custom, 'transparent': !ptav.is_custom and !ptav.html_color, 'css_not_available': ptav.excluded }">
<input