mirror of https://github.com/OCA/web.git
[IMP] web_widget_numeric_step: better visualization in list view cells
parent
9403f0f3eb
commit
47541113a0
|
@ -5,7 +5,7 @@
|
||||||
{
|
{
|
||||||
'name': "Web Widget Numeric Step",
|
'name': "Web Widget Numeric Step",
|
||||||
'category': "web",
|
'category': "web",
|
||||||
'version': "12.0.1.1.3",
|
'version': "12.0.1.1.4",
|
||||||
'author': "GRAP, Tecnativa, "
|
'author': "GRAP, Tecnativa, "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
.widget_numeric_step {
|
.widget_numeric_step {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
.numeric_step_editing_cell {
|
||||||
|
min-width: 120px;
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue