[ADD] website: add option to hide website.info page

The page has a note saying this page can be disabled but has no option to do so.
Adding one in the customize menu.
Hide the technical informations to the non-technical users, keeping only
the list of applications (not modules) for public users.
Fixes #3546
This commit is contained in:
Martin Trigaux 2015-04-08 11:12:38 +02:00
parent 3935da9ad4
commit f025d3e17c
1 changed files with 29 additions and 20 deletions

View File

@ -447,6 +447,13 @@
<template id="info" name="Odoo Information">
<t t-call="website.layout">
<div id="wrap">
</div>
</t>
</template>
<template id="show_website_info" inherit_id="website.info" customize_show="True" name="Show Odoo Information">
<xpath expr="//div[@id='wrap']" position="inside">
<div class="oe_structure">
<section class="container">
@ -473,35 +480,37 @@
</dt>
<dd>
<span t-raw="app.summary"/>
</dd><dd class="text-muted">
</dd><dd class="text-muted" groups='base.group_no_one'>
Technical name: <span t-field="app.name"/>, updated: <span t-field="app.write_date"/>, author: <span t-field="app.author"/>
</dd>
</dl>
<h2>Installed Modules</h2>
<dl class="dl-horizontal">
<t t-foreach="modules" t-as="app">
<dt>
<span t-raw="app.shortdesc"/>
</dt>
<dd t-if="app.summary">
<span t-raw="app.summary"/>
</dd><dd>
Technical name: <span t-field="app.name"/>,
updated: <span t-field="app.write_date"/>
<t t-if="app.author">
, author: <span t-field="app.author"/>
</t>
</dd>
</t>
</dl>
<div groups='base.group_no_one'>
<h2>Installed Modules</h2>
<dl class="dl-horizontal">
<t t-foreach="modules" t-as="app">
<dt>
<span t-raw="app.shortdesc"/>
</dt>
<dd t-if="app.summary">
<span t-raw="app.summary"/>
</dd><dd>
Technical name: <span t-field="app.name"/>,
updated: <span t-field="app.write_date"/>
<t t-if="app.author">
, author: <span t-field="app.author"/>
</t>
</dd>
</t>
</dl>
</div>
</section>
</div>
</div>
</t>
</xpath>
</template>
<template id="default_page">