diff options
| author | Rémi Rahir <rar@odoo.com> | 2018-09-28 10:02:18 +0200 |
|---|---|---|
| committer | Rémi Rahir <rar@odoo.com> | 2018-09-29 11:12:38 +0200 |
| commit | a95bbd85b13cd902f29faa30368e4f86ff5f2f12 (patch) | |
| tree | feafe610f820069bd15e09ce9913164ce24a4529 | |
| parent | b6a981405e1c211b3d5377ff53a2bb7847225d6f (diff) | |
[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.
| -rw-r--r-- | addons/sms/static/src/js/sms_widget.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ |
