[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:
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user