[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.
This commit is contained in:
Rémi Rahir
2018-09-29 11:12:38 +02:00
parent b6a981405e
commit a95bbd85b1
+4 -1
View File
@@ -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
*/