Skip to main content

Basic notifications management for your CMS system

Project description

License: LGPL-3

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

./images/cms_notif_menu.png ./images/cms_notif_settings.png ./images/cms_notif_listing.png

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

Funders

The development of this module has been financially supported by: Fluxdock.io.

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_notification-11.0.1.0.3-py2.py3-none-any.whl (88.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file odoo11_addon_cms_notification-11.0.1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for odoo11_addon_cms_notification-11.0.1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b989ee0a9cd13f3dc06aafa502f2995c1e433b6635f317f24e7db9b45a684a7b
MD5 2905756c94183f4f381ec2062a6d2a0d
BLAKE2b-256 76d99724f6ed08df96fc607cb02ec3793260bbb4a303bfed45fe8fbe8b185c44

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