This release is a pre-release and may not be stable for production use.
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
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(CMSNotificationPanel, self)._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.
Metadata
Release files for odoo9-addon-cms-notification 9.0.1.0.0.99.dev2
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 |
|---|---|---|---|---|
| odoo9_addon_cms_notification-9.0.1.0.0.99.dev2-py2-none-any.whl | Python 2 | none | any | Details for odoo9_addon_cms_notification-9.0.1.0.0.99.dev2-py2-none-any.whl |
Release files / odoo9_addon_cms_notification-9.0.1.0.0.99.dev2-py2-none-any.whl
| Download URL | odoo9_addon_cms_notification-9.0.1.0.0.99.dev2-py2-none-any.whl |
|---|---|
| Size | 83.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
f0044033af9be1fcf6f780173174df9bf314e835d2de9797b16d9a7184420fc5
|
|
BLAKE2b-256 checksum How to use checksums |
41134f1071d0b3065c0a9f9526ab6fc654db64c6ed34bd960f19b31ab88af37b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for odoo9-addon-cms-notification 9.0.1.0.0.99.dev2
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.