From 9da6640c9aaa6e73310ca2792c52dde5cd7bc260 Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Fri, 23 Sep 2022 08:46:28 +0000 Subject: [PATCH] [FIX] web: FormView x2many in notebook shouldn't have padding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adapts the x2many as first notebook tab's child selector to the DOM of its OWL implementation, restoring the correct padding in this case. Steps to reproduce: - Open Product form view - Select the Variants notebook's tab - Tab shouldn't have padding when the first child is a one2many closes odoo/odoo#100912 X-original-commit: 74875dcc0b84236c0911b117666fc6deb41ed432 Signed-off-by: Adrien Dieudonné (adr) Signed-off-by: Pierre Paridans (app) --- addons/web/static/src/views/form/form_controller.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/views/form/form_controller.scss b/addons/web/static/src/views/form/form_controller.scss index 17b791bd8e0..d075bb3e586 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -633,8 +633,8 @@ } // Full width on first x2many or on second x2many if first is invisible - &.o_field_x2many.o_field_x2many_list, - &.o_field_widget.o_invisible_modifier + .o_field_x2many.o_field_x2many_list { + .o_field_x2many.o_field_x2many_list, + &.o_invisible_modifier + .o_field_widget .o_field_x2many.o_field_x2many_list { display: block; width: auto; @include o-form-sheet-negative-margin;