[IMP] website: rename xml_id website.info to website.website_info

After this commit, the end user will be able to create the page /page/info.
This commit is contained in:
Jeremy Kersten
2016-08-17 10:24:59 +02:00
parent 6defad0340
commit 4cfd86edaa
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -199,7 +199,7 @@ class Website(Home):
@http.route('/website/info', type='http', auth="public", website=True)
def website_info(self):
try:
request.website.get_template('website.info').name
request.website.get_template('website.website_info').name
except Exception, e:
return request.env['ir.http']._handle_exception(e, 404)
Module = request.env['ir.module.module'].sudo()
@@ -210,7 +210,7 @@ class Website(Home):
'modules': modules,
'version': odoo.service.common.exp_version()
}
return request.render('website.info', values)
return request.render('website.website_info', values)
#------------------------------------------------------
# Edit
+2 -2
View File
@@ -556,13 +556,13 @@
</template>
<!-- Error and special pages -->
<template id="info" name="Odoo Information">
<template id="website_info" name="Odoo Information">
<t t-call="website.layout">
<div id="wrap"/>
</t>
</template>
<template id="show_website_info" inherit_id="website.info" customize_show="True" name="Show Odoo Information">
<template id="show_website_info" inherit_id="website.website_info" customize_show="True" name="Show Odoo Information">
<xpath expr="//div[@id='wrap']" position="inside">
<div class="oe_structure">
<section class="container">