diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2021-01-27 18:12:59 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2021-02-18 13:22:41 +0000 |
| commit | e1eeb8dca2cc83b8a79d9bf5120a589df01bf867 (patch) | |
| tree | 3120caee2edff13553e0e03d0042fb80b8e2fd67 | |
| parent | ce93cbd78e282e6957aaeba6f06945f94bfffb26 (diff) | |
[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#66464
X-original-commit: fc7ef284915641472722a7be06a75b1df3b8ca93
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
| -rw-r--r-- | addons/sale/static/src/js/variant_mixin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale/static/src/js/variant_mixin.js b/addons/sale/static/src/js/variant_mixin.js index ff4007f9b0b..07cb866ea71 100644 --- a/addons/sale/static/src/js/variant_mixin.js +++ b/addons/sale/static/src/js/variant_mixin.js @@ -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 |
