[FIX] web: layout: banner should not be in o_content

Part-of: odoo/odoo#78221
This commit is contained in:
Lucas Perais
2022-07-22 16:21:39 +02:00
committed by Géry Debongnie
parent 8dda736df4
commit 3c7ace02df
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -6,8 +6,8 @@
<t t-slot="layout-buttons"/>
</t>
<t t-component="components.ControlPanel" slots="controlPanelSlots" t-if="display.controlPanel"/>
<t t-component="components.Banner" t-if="display.banner"/>
<div class="o_content" t-attf-class="{{props.className}}" t-att-class="{ o_component_with_search_panel: display.searchPanel }">
<t t-component="components.Banner" t-if="display.banner"/>
<t t-component="components.SearchPanel" t-if="display.searchPanel"/>
<t t-slot="default"/>
</div>
@@ -256,5 +256,7 @@ QUnit.module("Views", (hooks) => {
assert.containsOnce(target, ".o_toy_content");
assert.containsOnce(target, ".o_toy_banner");
assert.notOk(target.querySelector(".o_toy_banner").closest(".o_content"));
assert.ok(target.querySelector(".o_toy_content").closest(".o_content"));
});
});