Author: |
Camptocamp, Odoo Community Association (OCA) |
License: |
LGPL-3 |
Branch: |
11.0 |
Repository: |
akretion/website-cms |
Dependencies: |
cms_delete_content,
and
website |
Languages: |
Python (219, 79.6%),
and
reStructuredText (56, 20.4%) |
Other branches: |
10.0,
and
13-mig-base-test-helper |
Other repositories: |
Change2improve/website-cms,
CompassionCH/website-cms,
ERPLibre/website-cms,
ForgeFlow/website-cms,
Gabinete-Digital/website-cms,
Guobower/website-cms,
Ingeos/website-cms,
JazziMc/website-cms,
MjAbuz/website-cms,
NL66278/website-cms,
NeatNerdPrime/website-cms,
Nooka10/website-cms,
OCA/website-cms,
PCatinean/website-cms,
TelmoSenseFly/website-cms,
VisiionSolucionesTecnologicas/website-cms,
anhvu-sg/website-cms,
bishalgit/website-cms,
camptocamp/website-cms,
gfcapalbo/website-cms,
grindtildeath/website-cms,
hbrunn/website-cms,
hinfo506/website-cms,
isoscl/website-cms,
josueBulle/website-cms,
lideritjnma/website-cms,
lukehuang/website-cms,
one2pret/website-cms,
pscloud/website-cms,
ravishekharco/website-cms,
redcor/website-cms,
sanube/website-cms,
simahawk/website-cms,
steingabelgaard/website-cms,
wahello/website-cms,
and
x0rzkov/odoo-website-cms |
<a class="reference external image-reference" href="http://www.gnu.org/licenses/LGPL-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-lgpl--3-blue.png" /></a>
<a name="cms-info"></a>
<h2>CMS Info</h2>
<p>Provide basic information for website records / models via <cite>website.published.mixin</cite>.
This module is meant to be used as a base to build your own CMS.</p>
<a name="new-attributes"></a>
<h3>New attributes</h3>
<ul class="simple">
<li><code>cms_create_url</code>: lead to create view. By default <code>/cms/create/my.model</code></li>
<li><code>cms_search_url</code>: lead to search view. By default <code>/cms/search/my.model</code></li>
<li><code>cms_edit_url</code> (computed field): lead to edit view. By default <code>/cms/edit/my.model/model_id</code></li>
</ul>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">No routing provided.
This attributes provide only basic information on contents' URLs.
If you use <cite>cms_form</cite> default routes are handled automatically.
If not, is up to you to provide your own routes to handle them.</p>
</div>
<a name="permission-and-extra-information"></a>
<h3>Permission and extra information</h3>
<ul class="simple">
<li><code>record.cms_is_owner()</code>: current user is the owner of the record?</li>
<li><code>record.cms_can_edit()</code>: current user can edit this record?</li>
<li><code>record.cms_can_publish()</code>: current user can publish this record?</li>
<li><code>record.cms_can_delete()</code>: current user can delete this record?</li>
<li><code>model.cms_can_create()</code>: current user can create a new record?</li>
</ul>
<a name="info-all-in-one"></a>
<h3>Info all in one</h3>
<p>When you build CMS UIs you need all those info at once.
This module provides also an helper method <cite>cms_info()</cite>
that gives you back a dictionary containing:</p>
<ul class="simple">
<li><cite>is_owner</cite>: True/False,</li>
<li><cite>can_edit</cite>: True/False,</li>
<li><cite>can_create</cite>: True/False,</li>
<li><cite>can_publish</cite>: True/False,</li>
<li><cite>can_delete</cite>: True/False,</li>
<li><cite>create_url</cite></li>
<li><cite>edit_url</cite></li>
<li><cite>delete_url</cite></li>
</ul>
<a name="bug-tracker"></a>
<h4>Bug Tracker</h4>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/website-cms/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.</p>
<a name="credits"></a>
<h4>Credits</h4>
<a name="contributors"></a>
<h3>Contributors</h3>
<ul class="simple">
<li>Simone Orsi <<a class="reference external" href="mailto:simone.orsi@camptocamp.com">simone.orsi@camptocamp.com</a>></li>
</ul>
<a name="maintainer"></a>
<h3>Maintainer</h3>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>This module is maintained by the OCA.</p>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p>
<p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>