From ffc9f93f7563b8cd9aa07cd94d31c1681da58cec Mon Sep 17 00:00:00 2001 From: Pierrick Brun Date: Thu, 23 Apr 2020 14:44:29 +0200 Subject: [PATCH] !fixup bugfix thanks to @mclaeysb --- pos_mail_receipt/static/src/js/screens.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pos_mail_receipt/static/src/js/screens.js b/pos_mail_receipt/static/src/js/screens.js index def43729..39e1bf9d 100644 --- a/pos_mail_receipt/static/src/js/screens.js +++ b/pos_mail_receipt/static/src/js/screens.js @@ -79,14 +79,14 @@ odoo.define("pos_mail_receipt.screens", function (require) { 'title': error.data.message, 'body': error.data.debug }); - this.$('.button.email').removeClass("highlight"); + self.$('.button.email').removeClass("highlight"); } if(connection_problem){ self.gui.show_popup('error',{ 'title': _t('The e-mail could not be sent'), 'body': _t('Check your internet connection and try again.'), }); - this.$('.button.email').removeClass("highlight"); + self.$('.button.email').removeClass("highlight"); } }); },