[FIX] web: fix layout when banner and search_panel

Before this rev., the layout was broken when a search_panel
was used alongside the onboarding banner in a kanban view. Note
that this usecase doesn't exist in standard.

Closes #31986

closes odoo/odoo#34303

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
This commit is contained in:
Aaron Bohy
2019-06-21 14:11:58 +00:00
parent a5b6946940
commit 17f5fa8a3b
@@ -325,7 +325,7 @@ var AbstractController = mvc.Controller.extend(ActionMixin, {
js.remove();
});
return Promise.all(defs).then(function () {
$banner.prependTo(self.$('> .o_content'));
$banner.insertBefore(self.$('> .o_content'));
self._$banner = $banner;
});
});