From fe20a82e633f27b256adf71697431a9cbb89df42 Mon Sep 17 00:00:00 2001 From: amdi-odoo Date: Thu, 6 Oct 2022 08:30:24 +0000 Subject: [PATCH 1/4] [IMP] web: add custom input resize With the arrival of the new always edit mode, some form views display are broken because of the very big input width creating white gap when having inline fields. This commit introduces new css classes to be added to the input fields in order to constraint their width and avoid white gaps in forms. Task-2996467 X-original-commit: 5fe7759fc457612bfc09e2d97849c5e51874edd2 Part-of: odoo/odoo#106570 --- addons/web/static/src/views/form/form_controller.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/views/form/form_controller.scss b/addons/web/static/src/views/form/form_controller.scss index 570d600c279..ada6b295d53 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -95,6 +95,11 @@ @extend .oe_inline; float: right!important; } + @for $i from 2 through 12 { + .o_field_widget.o_input_#{$i}ch input{ + width: 1ch * $i !important; + } + } .o_field_empty:empty { min-height: $font-size-base * $line-height-base; From eb8eba04c91caba85043e9dcc03b371c03434278 Mon Sep 17 00:00:00 2001 From: amdi-odoo Date: Fri, 7 Oct 2022 13:42:57 +0000 Subject: [PATCH 2/4] [FIX] {website_}event: fix input display Purpose ======= Fix the inline input fields which width seems broken because of the new always edit mode and the new form grid layout. Specifications ============== Limit the size of the confirmed attendees input field in the event form and event type form to display the confirmed attendees message in one line. When using the debug mode, in the event templates, inline the Register Button with its checkbox to avoid line breaks. Task-2996467 X-original-commit: 60bb067b1d3df699648967ab5b2e89aa164cee52 Part-of: odoo/odoo#106570 --- addons/event/views/event_event_views.xml | 2 +- addons/event/views/event_type_views.xml | 2 +- addons/website_event/views/event_type_views.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/event/views/event_event_views.xml b/addons/event/views/event_event_views.xml index a96704ca566..ed861afad31 100644 --- a/addons/event/views/event_event_views.xml +++ b/addons/event/views/event_event_views.xml @@ -60,7 +60,7 @@