[FIX] web: sheet views displaying properly for ecommerce categories form

Steps to reproduce:

- Go to the eCommerce app > eCOmmerce Categories.
- Select any categorie or try to create a new one.

Issue:

The box containing the fields it's not displayed properly.

Solution:

Added the class `clearfix` to the sheet component as it used to be in
previous versions.

opw-3080099

closes odoo/odoo#109408

X-original-commit: 4373cf2901b8db61592eba7cff2fae60ff68348a
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Maruan Aguerdouh (magm)
2023-01-09 12:22:59 +01:00
parent 241ee24b40
commit eb4197e22b
2 changed files with 2 additions and 2 deletions
@@ -611,7 +611,7 @@ export class FormCompiler extends ViewCompiler {
sheetBG.className = "o_form_sheet_bg";
const sheetFG = createElement("div");
sheetFG.className = "o_form_sheet position-relative";
sheetFG.className = "o_form_sheet position-relative clearfix";
append(sheetBG, sheetFG);
for (const child of el.childNodes) {
@@ -209,7 +209,7 @@ QUnit.module("Form Compiler", (hooks) => {
<div class="o_form_sheet_bg">
<div class="o_form_statusbar position-relative d-flex justify-content-between border-bottom"><StatusBarButtons/></div>
<div>someDiv</div>
<div class="o_form_sheet position-relative">
<div class="o_form_sheet position-relative clearfix">
<div>inside sheet</div>
</div>
</div>