From 3eb9269308ebd96642b0956805730187fbb1879c Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 7 Feb 2019 14:29:28 +0000 Subject: [PATCH] [FIX] web: consider the body when there is no wrapwrap Part of https://github.com/odoo/odoo/pull/29442 task-1932066 --- addons/web/static/src/js/public/public_root.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/web/static/src/js/public/public_root.js b/addons/web/static/src/js/public/public_root.js index 10a2d20efc3..eedc6cf5377 100644 --- a/addons/web/static/src/js/public/public_root.js +++ b/addons/web/static/src/js/public/public_root.js @@ -163,6 +163,12 @@ var PublicRoot = publicWidget.RootWidget.extend(ServiceProviderMixin, { if ($from === undefined) { $from = this.$('#wrapwrap'); + if (!$from.length) { + // TODO Remove this once all frontend layouts possess a + // #wrapwrap element (which is necessary for those pages to be + // adapted correctly if the user installs website). + $from = this.$el; + } } if (options === undefined) { options = {};