Basic notifications management for your CMS system
Project description
CMS notification
Features
Manage notifications in your CMS. Provides:
menu item for settings
menu item for notifications listing
flag has_unread_notif on user to highlight when the user has an unread notification
flag cms_type on message subtype to enable/disable visibility in CMS features (notifications listing for instance)
Depends on mail_digest [WIP PR] and cms_form [WIP PR].
Default appearance
Customization
You can customize the form as specified in cms_form docs. cms_notification extends the form behavior allowing you to just provide the fields you need and a mapping between fields and messages’ subtypes.
class CMSNotificationPanel(models.AbstractModel):
_inherit = 'cms.notification.panel.form'
enable_my_type = fields.Boolean(
string='Enable my type notifications',
help=("If active, you will receive notifications "
"about this type.")
)
enable_my_type2 = fields.Boolean(
string='Enable my type 2 notifications',
help=("If active, you will receive notifications "
"about this type 2.")
)
@property
def _form_subtype_fields(self):
res = super()._form_subtype_fields
res.update({
'enable_my_type': 'module.mt_mytype',
'enable_my_type2': 'module.mt_mytype2',
})
return res
Usage
To bring the user to her/his panel:
<a class="btn btn-default" href="/my/settings/notifications">Notifications</a>
To bring the user to her/his notifications:
<a class="btn btn-default" href="/my/notifications">Notification settings</a>
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
Contributors
Simone Orsi simone.orsi@camptocamp.com
Funders
The development of this module has been financially supported by: Fluxdock.io.
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 odoo11_addon_cms_notification-11.0.1.0.3.99.dev5-py2.py3-none-any.whl
.
File metadata
- Download URL: odoo11_addon_cms_notification-11.0.1.0.3.99.dev5-py2.py3-none-any.whl
- Upload date:
- Size: 91.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fd4935425cfd382483ac8a7c5844f81587893ad6b59fda8bf25e39a42785b48 |
|
MD5 | 10f82a47a4a1e5e3570badbeab89fa59 |
|
BLAKE2b-256 | ee8d1ae9c17932be1b1b0fc72b3639785b38e6c567ba2a14bdd16be915703107 |