diff --git a/addons/sms/static/src/js/fields_phone_widget.js b/addons/sms/static/src/js/fields_phone_widget.js index 84809f2b044..82b8e5b3f7f 100644 --- a/addons/sms/static/src/js/fields_phone_widget.js +++ b/addons/sms/static/src/js/fields_phone_widget.js @@ -33,7 +33,7 @@ Phone.include({ */ getFocusableElement() { if (this.enableSMS && this.mode === 'readonly') { - return this.$('.' + this.className); + return this.$el.filter('.' + this.className); } return this._super.apply(this, arguments); }, @@ -88,7 +88,7 @@ Phone.include({ }); $composerButton.prepend($('', {class: 'fa fa-mobile'})); $composerButton.on('click', this._onClickSMS.bind(this)); - this.$el = $('
').append(this.$el).append($composerButton); + this.$el = this.$el.add($composerButton); } return def;