跳转到主要内容

为您的CMS系统提供基本的通知管理功能

项目描述

License: LGPL-3

CMS通知

功能

管理您的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="btn btn-default" href="/my/settings/notifications">Notifications</a>

将用户带到其通知

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

错误跟踪器

错误在 GitHub Issues 上跟踪。如果在那里发现问题已经报告,请检查。如果您首先发现了它,请通过提供详细且受欢迎的反馈来帮助我们解决问题。

鸣谢

贡献者

资助者

此模块的开发得到了 Fluxdock.io 的财务支持。

维护者

Odoo Community Association

此模块由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 查看哈希)

上传时间 Python 2 Python 3

支持