CMS Info
Provide basic information for website records / models via website.published.mixin. This module is meant to be used as a base to build your own CMS.
New attributes
cms_create_url: lead to create view. By default /cms/create/my.model
cms_search_url: lead to search view. By default /cms/search/my.model
cms_edit_url (computed field): lead to edit view. By default /cms/edit/my.model/model_id
Permission and extra information
record.cms_is_owner(): current user is the owner of the record?
record.cms_can_edit(): current user can edit this record?
record.cms_can_publish(): current user can publish this record?
record.cms_can_delete(): current user can delete this record?
model.cms_can_create(): current user can create a new record?
Info all in one
When you build CMS UIs you need all those info at once. This module provides also an helper method cms_info() that gives you back a dictionary containing:
is_owner: True/False,
can_edit: True/False,
can_create: True/False,
can_publish: True/False,
can_delete: True/False,
create_url
edit_url
delete_url
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Credits
Contributors
Simone Orsi <simone.orsi@camptocamp.com>
Maintainer
This module is maintained by the OCA.
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.
To contribute to this module, please visit https://odoo-community.org.
Metadata
Release files for odoo11-addon-cms-info 11.0.1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo11_addon_cms_info-11.0.1.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for odoo11_addon_cms_info-11.0.1.0.2-py2.py3-none-any.whl |
Release files / odoo11_addon_cms_info-11.0.1.0.2-py2.py3-none-any.whl
| Download URL | odoo11_addon_cms_info-11.0.1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
21a0409ab5340f2f8a0f91cf0f543b35673b0f86b38c823bcebf9c2c1c2f41bc
|
|
BLAKE2b-256 checksum How to use checksums |
fd5061abf3f3660c8ab7c6d6c21267442ae9853764b5250099067ac864bd369f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/30.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
|
Security for odoo11-addon-cms-info 11.0.1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.