From fe3e2877b2a585773a06b2fd8be998620830c1c8 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Thu, 6 Oct 2022 13:37:05 +0000 Subject: [PATCH] [FIX] web: revert fix with too much side-effects This reverts commit 8d7bcc8eee7a333e8e463469177a1a86f9928254. The fix also impact a lot of form views without a node (o_form_nosheet), e.g. Settings, Knowledge articles, Mass Mailing, Bank Reconciliation, widget, etc. Not the correct solution. X-original-commit: 00e71f3ebad40d32f74f945475fb474e89b6cf4a Part-of: odoo/odoo#102511 --- addons/web/static/src/views/form/form_compiler.js | 2 -- addons/web/static/tests/views/form/form_compiler_tests.js | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/addons/web/static/src/views/form/form_compiler.js b/addons/web/static/src/views/form/form_compiler.js index 19a6a7b3ff9..eebcdba4b95 100644 --- a/addons/web/static/src/views/form/form_compiler.js +++ b/addons/web/static/src/views/form/form_compiler.js @@ -235,8 +235,6 @@ export class FormCompiler extends ViewCompiler { append(form, this.compileNode(child, params)); } form.className = "o_form_nosheet"; - // Compensate for negative margins introduced by gutters on OuterGroups (avoids overflow) - form.className += " p-2 px-lg-5"; } else { let compiledList = []; for (const child of el.childNodes) { diff --git a/addons/web/static/tests/views/form/form_compiler_tests.js b/addons/web/static/tests/views/form/form_compiler_tests.js index 4c66a61ec04..ee5fe8a603d 100644 --- a/addons/web/static/tests/views/form/form_compiler_tests.js +++ b/addons/web/static/tests/views/form/form_compiler_tests.js @@ -38,7 +38,7 @@ QUnit.module("Form Compiler", (hooks) => { const arch = /*xml*/ `
lol
`; const expected = /*xml*/ ` -
+
lol
`; @@ -52,7 +52,7 @@ QUnit.module("Form Compiler", (hooks) => { const arch = /*xml*/ `