From 9ef7763ecdf4fb102e49ce68ac4ca3ce7557016e Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Tue, 25 Sep 2018 08:53:36 +0000 Subject: [PATCH] [FIX] website: create ir.ui.view / website.page in the same record Somehow, having theses 2 new `website.page` records created separately from their `ir.ui.view` would throw an error in dev-xml when installing website module. A task has been created in website team to track the origin of this bug. In the meantime, this commit will avoid the traceback by creating the view inside the page record. As the page's view is not intented to be inherited, it is the best way to write it anyway. Step to reproduce: - Start odoo in dev xml - Install website app Related to #27199 closes odoo/odoo#27210 --- addons/website/data/website_demo.xml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/addons/website/data/website_demo.xml b/addons/website/data/website_demo.xml index 3f86ef31b63..e1e67a2cbc6 100644 --- a/addons/website/data/website_demo.xml +++ b/addons/website/data/website_demo.xml @@ -246,8 +246,10 @@ response = request.render("website.template_partner_comment", { - + BS Debug + /website/demo/bootstrap + False qweb website.bs_debug_page_view @@ -492,16 +494,13 @@ response = request.render("website.template_partner_comment", { - - /demo/bs-debug - False - - - + Snippet Debug + /website/demo/snippets + False qweb website.snippets_debug_page_view @@ -532,10 +531,5 @@ response = request.render("website.template_partner_comment", { - - /demo/snippets-debug - False - -