[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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user