Skip to main content

A set of basic information needed on all published records.

Project description

License: LGPL-3

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

Maintainer

Odoo Community Association

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

odoo11_addon_cms_info-11.0.1.0.1-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file odoo11_addon_cms_info-11.0.1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: odoo11_addon_cms_info-11.0.1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for odoo11_addon_cms_info-11.0.1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d64f9d485adcd3dd7ed4d39117c9d19b646e42054938ed0c54f887cf278c818b
MD5 079eff9882c90f03766e85d838896eb1
BLAKE2b-256 aa536f2e524a01f96706fb911ddbf5d82d77e245f90f81de08d948850dc525ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page