为您的CMS系统提供基本的通知管理功能
项目描述
CMS通知
功能
管理您的CMS中的通知。提供
设置菜单项
通知列表菜单项
在用户上有未读通知时突出显示的标志 has_unread_notif
在消息子类型上的标志 cms_type 以在CMS功能中启用/禁用可见性(例如通知列表)
默认外观
自定义
您可以根据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 上跟踪。如果在那里发现问题已经报告,请检查。如果您首先发现了它,请通过提供详细且受欢迎的反馈来帮助我们解决问题。
鸣谢
贡献者
Simone Orsi simone.orsi@camptocamp.com
资助者
此模块的开发得到了 Fluxdock.io 的财务支持。
维护者
此模块由OCA维护。
OCA,或Odoo社区协会,是一个非营利组织,其使命是支持Odoo功能的协作开发并推广其广泛使用。
为贡献此模块,请访问 https://odoo-community.org。
项目详情
关闭
哈希 for odoo11_addon_cms_notification-11.0.1.0.3-py2.py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b989ee0a9cd13f3dc06aafa502f2995c1e433b6635f317f24e7db9b45a684a7b |
|
MD5 | 2905756c94183f4f381ec2062a6d2a0d |
|
BLAKE2b-256 | 76d99724f6ed08df96fc607cb02ec3793260bbb4a303bfed45fe8fbe8b185c44 |