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*/ `