Skip to main content

CMS 系统的基本通知管理

项目描述

许可证:LGPL-3

内容管理系统通知

特征

在您的 CMS 中管理通知。提供:

  • 设置菜单项

  • 通知列表的菜单项

  • 当用户有未读通知时,在用户上标记has_unread_notif以突出显示

  • 在消息子类型上标记cms_type以启用/禁用 CMS 功能中的可见性(例如通知列表)

取决于mail_digest [WIP PR]cms_form [WIP PR]

默认外观

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

定制

您可以自定义cms_form文档中指定的表单。 cms_notification扩展了表单行为,允许您只提供所需的字段以及字段和消息子类型之间的映射。

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

用法

要将用户带到她/他的面板:

<a class=<s>"btn btn-default"</s> href=<s>"/my/settings/notifications"</s>>Notifications</a>

将用户带到她/他的通知:

<a class=<s>"btn btn-default"</s> href=<s>"/my/notifications"</s>>Notification settings</a>

错误追踪器

在GitHub 问题上跟踪错误。如果遇到问题,请检查您的问题是否已被报告。如果您首先发现它,请通过提供详细且受欢迎的反馈来帮助我们粉碎它。

学分

贡献者

资助者

该模块的开发得到了Fluxdock.io的资金支持。

维护者

Odoo 社区协会

该模块由 OCA 维护。

OCA 或 Odoo 社区协会是一个非营利组织,其使命是支持 Odoo 功能的协作开发并促进其广泛使用。

要为本模块做出贡献,请访问https://odoo-community.org

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

内置分布

odoo11_addon_cms_notification-11.0.1.0.3-py2.py3-none-any.whl (88.5 kB 查看哈希

已上传 py2 py3