Basic status messages for your CMS system
Project description
CMS status message
A “status message” is an important message that you want to show to users.
For instance: a user submit a form or does a specific action and you want to report the status of this action like “your profile has been updated” or “Your upgrade has been successful.”.
This module allows to easily display this kind of messages to your users.
Messages are displayed using Twitter bootstrap alerts.
You can add several messages: they will be displayed one after another.
Usage
Set a message:
msg = _('My important message.') if request.website: request.website.add_status_message(msg)
By default the message type is info. The title (the label at the beginning of the message) matches the message type:
‘info’: ‘Info’
‘success’: ‘Success’
‘danger’: ‘Error’
‘warning’: ‘Warning’
You can change message parameters:
msg = _('Watch out!') if request.website: request.website.add_status_message(msg, mtype='warning', mtitle='Oh no')
Messages will be displayed like this:
Customize appereance
By default the alert box is added on top of <main /> content. If you want to customize this behavior just override or disable cms_status_message.add_status_message template.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Credits
Images
Odoo Community Association: Icon.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo9_addon_cms_status_message-9.0.1.0.0-py2-none-any.whl
.
File metadata
- Download URL: odoo9_addon_cms_status_message-9.0.1.0.0-py2-none-any.whl
- Upload date:
- Size: 76.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d88a607badbaf029705e07c4e02862a35aea78bc533102f50800177fb211865d |
|
MD5 | c17123379b4f7c8c5cc82ca45b80cd61 |
|
BLAKE2b-256 | 8a01c3809bc0c39259bf92a297dfdab51cac39f4cd64637814c2dddfd79cbe28 |