From 2b4c6766d01580707b1d23b101742f1d194f32b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Rodr=C3=ADguez?= Date: Tue, 16 Jan 2018 19:24:25 -0500 Subject: [PATCH] [Odoo 10] Fix for #20 The bug keeps happening in this version, and the solution is the same as what was stated in the issue. --- base_phone/static/src/js/phone_widget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/base_phone/static/src/js/phone_widget.js b/base_phone/static/src/js/phone_widget.js index c634a77..2b30426 100644 --- a/base_phone/static/src/js/phone_widget.js +++ b/base_phone/static/src/js/phone_widget.js @@ -49,6 +49,7 @@ odoo.define('base_phone.phone_widget', function (require) { if (phone_num && !this.options.dial_button_invisible) { click2dial_text = _t('Dial'); } + this.$el.filter('#click2dial').off('click'); this.$el.filter('#click2dial') .text(click2dial_text) .attr('href', '#')