diff --git a/addons/web/static/src/views/form/form_compiler.js b/addons/web/static/src/views/form/form_compiler.js index eebcdba4b95..19a6a7b3ff9 100644 --- a/addons/web/static/src/views/form/form_compiler.js +++ b/addons/web/static/src/views/form/form_compiler.js @@ -235,6 +235,8 @@ 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 ee5fe8a603d..4c66a61ec04 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*/ `