From e9106f8f98ff5494132722d70c0f5bffce027f49 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Wed, 16 Oct 2019 17:28:14 +0000 Subject: [PATCH] [IMP] http_routing, portal, website: nicer 404 layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces a nicer 404 page, which is basically the same layout as the one used on Odoo.com. Also, the 404 is now fully customizable, blocks can be drag'd & drop'd. task-1966460 closes odoo/odoo#38901 Signed-off-by: Jérémy Kersten (jke) --- addons/http_routing/static/src/img/404.svg | 15 ++++++ .../views/http_routing_template.xml | 49 ++++++++++++++----- addons/portal/views/portal_templates.xml | 22 ++++++--- .../views/website_navbar_templates.xml | 2 +- addons/website/views/website_templates.xml | 13 +++-- .../views/website_blog_templates.xml | 6 +++ .../website_event/views/event_templates.xml | 6 +++ addons/website_forum/views/website_forum.xml | 6 +++ addons/website_sale/views/templates.xml | 22 +++------ addons/website_slides/data/website_data.xml | 6 +++ 10 files changed, 108 insertions(+), 39 deletions(-) create mode 100644 addons/http_routing/static/src/img/404.svg diff --git a/addons/http_routing/static/src/img/404.svg b/addons/http_routing/static/src/img/404.svg new file mode 100644 index 00000000000..c2ef1347720 --- /dev/null +++ b/addons/http_routing/static/src/img/404.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + +

404

+
+
diff --git a/addons/http_routing/views/http_routing_template.xml b/addons/http_routing/views/http_routing_template.xml index 648b4c3afd8..54d8fac5a29 100644 --- a/addons/http_routing/views/http_routing_template.xml +++ b/addons/http_routing/views/http_routing_template.xml @@ -100,24 +100,51 @@ -