[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:
parent
1213de3ff5
commit
7f6c669530
|
@ -459,6 +459,10 @@
|
|||
<div class="oe_structure">
|
||||
|
||||
<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"/>
|
||||
<small>Odoo Version <t t-raw="version.get('server_version')"/></small>
|
||||
</h1>
|
||||
|
@ -506,8 +510,7 @@
|
|||
</t>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
|
||||
</t>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue