[FIX] sale: Display color tootlip in product configurator

Issue

	- Install "Sales" module
	- Go to settings and activate "Product Configurator" feature
	- Create a product X with mutilple color (variants)
	- Create a quotation
	- Add product X (Product Configurator should open)
	- Hover any color

	Popup with color name does not appear.

Cause

	'title' attribute value is removed.

Solution

	if element have 'value_name' data attribute, set it back as title else set no title.

opw-2438704

closes odoo/odoo#66479

X-original-commit: fc7ef284915641472722a7be06a75b1df3b8ca93
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
This commit is contained in:
Nasreddin (bon)
2021-02-18 15:00:13 +00:00
parent f234b4fba4
commit 8d3950d8d7
+1 -1
View File
@@ -342,7 +342,7 @@ var VariantMixin = {
.find('option, input, label')
.removeClass('css_not_available')
.prop('disabled', false)
.attr('title', '')
.attr('title', function () { return $(this).data('value_name') || ''; })
.data('excluded-by', '');
// exclusion rules: array of ptav