From a95bbd85b13cd902f29faa30368e4f86ff5f2f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rahir?= Date: Fri, 28 Sep 2018 10:02:18 +0200 Subject: [PATCH] [FIX] sms: fix style on the wizard because of some changes on the FieldText widget to correctly compute the size of the eidt box, the SmsWidget can no longer extend that widget since we work with a DIV and not a single TEXTAREA. For the future, we might change the way FieldText works but since we only need the basic functions from InputField in this case (no need of resize nor translations) we chose to extend InputField. --- addons/sms/static/src/js/sms_widget.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/sms/static/src/js/sms_widget.js b/addons/sms/static/src/js/sms_widget.js index bf7f494ca26..cbb0dda05b9 100644 --- a/addons/sms/static/src/js/sms_widget.js +++ b/addons/sms/static/src/js/sms_widget.js @@ -4,9 +4,12 @@ odoo.define('sms.sms_widget', function (require) { var basicFields = require('web.basic_fields'); var core = require('web.core'); var fieldRegistry = require('web.field_registry'); +var dom = require('web.dom'); var framework = require('web.framework'); + var FieldText = basicFields.FieldText; +var InputField = basicFields.InputField; var QWeb = core.qweb; var _t = core._t @@ -15,7 +18,7 @@ var _t = core._t * the number of SMS and the number of characters. This text is computed every * time the user changes the body. */ -var SmsWidget = FieldText.extend({ +var SmsWidget = InputField.extend({ /** * @constructor */