[FIX] website: /website/info use website.info xmlid

When a user try to create a new page info, he is redirected
to the /page/info because the xmlid already exists...

The problem is that this view need to be rendered via the
controller /website/info which gives some extra values (version, ...)

The fix for v8 is to redirect /page/info to /website/info.

In V9, the behavior is changed and one page info-1 will be created.
But this fix is also required for direct access to /page/info.

To do in master: maybe use another xml_id that this basic name 'info'?

This commit fix issue #8022
This commit is contained in:
Jeremy Kersten 2016-08-05 11:59:31 +02:00
parent 1213de3ff5
commit 7f6c669530
1 changed files with 5 additions and 2 deletions

View File

@ -459,6 +459,10 @@
<div class="oe_structure"> <div class="oe_structure">
<section class="container"> <section class="container">
<t t-if="not version">
<meta http-equiv="refresh" content="0;URL='/website/info'" />
</t>
<t t-if="version">
<h1><t t-esc="res_company.name"/> <h1><t t-esc="res_company.name"/>
<small>Odoo Version <t t-raw="version.get('server_version')"/></small> <small>Odoo Version <t t-raw="version.get('server_version')"/></small>
</h1> </h1>
@ -506,8 +510,7 @@
</t> </t>
</dl> </dl>
</div> </div>
</t>
</section> </section>
</div> </div>