Merge PR #1760 into 12.0

Signed-off-by pedrobaeza
pull/1762/head
OCA-git-bot 2020-12-14 08:46:57 +00:00
commit ae3c493ee7
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,6 @@
.widget_numeric_step { .widget_numeric_step {
display: inline-flex; display: inline-flex;
} }
.numeric_step_editing_cell {
min-width: 120px;
}

View File

@ -124,9 +124,20 @@ odoo.define('web_widget_numeric_step.field', function (require) {
* @override * @override
*/ */
_renderEdit: function () { _renderEdit: function () {
$("td.o_numeric_step_cell").addClass("numeric_step_editing_cell");
this._prepareInput(this.$el.find('input.input_numeric_step')); this._prepareInput(this.$el.find('input.input_numeric_step'));
}, },
/**
* Resets the content to the formated value in readonly mode.
*
* @override
*/
_renderReadonly: function () {
$("td.o_numeric_step_cell").removeClass("numeric_step_editing_cell");
this._super.apply(this, arguments);
},
/** /**
* Increase/Decrease widget input value * Increase/Decrease widget input value
* *