From dccab1502aa673077cf1c59f180a8cb810b34b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=2E=20D=C3=ADaz?= Date: Mon, 15 Feb 2021 20:05:50 +0100 Subject: [PATCH] [FIX] web_widget_one2many_product_picker: Clean attention css classes --- .../static/src/js/views/One2ManyProductPicker/record.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js b/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js index 6c6cefb26..66113689b 100644 --- a/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js +++ b/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js @@ -523,6 +523,7 @@ odoo.define("web_widget_one2many_product_picker.One2ManyProductPickerRecord", fu id: record.id, }); model.unsetDirty(self.state.id); + self.$card.find('.o_catch_attention').removeClass('o_catch_attention'); }); }, @@ -536,6 +537,7 @@ odoo.define("web_widget_one2many_product_picker.One2ManyProductPickerRecord", fu id: record.id, }); model.unsetDirty(this.state.id); + this.$card.find('.o_catch_attention').removeClass('o_catch_attention'); }, /** @@ -583,10 +585,6 @@ odoo.define("web_widget_one2many_product_picker.One2ManyProductPickerRecord", fu var $currentTarget = $(currentTarget); var $img = $currentTarget.find(".oe_flip_card_front img"); $target.addClass('o_catch_attention'); - $target.on('animationend', function () { - $target.removeClass('o_catch_attention'); - $target.off('animationend'); - }); $img.addClass('oe_product_picker_catch_attention'); $img.on('animationend', function () { $img.removeClass('oe_product_picker_catch_attention');