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=<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 问题上跟踪错误。如果遇到问题,请检查您的问题是否已被报告。如果您首先发现它,请通过提供详细且受欢迎的反馈来帮助我们粉碎它。
学分
贡献者
西蒙娜·奥尔西·西蒙娜。orsi @ camptocamp 。com
资助者
该模块的开发得到了Fluxdock.io的资金支持。
维护者
该模块由 OCA 维护。
OCA 或 Odoo 社区协会是一个非营利组织,其使命是支持 Odoo 功能的协作开发并促进其广泛使用。
要为本模块做出贡献,请访问https://odoo-community.org。
项目详情
关
odoo11_addon_cms_notification -11.0.1.0.3-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b989ee0a9cd13f3dc06aafa502f2995c1e433b6635f317f24e7db9b45a684a7b |
|
MD5 | 2905756c94183f4f381ec2062a6d2a0d |
|
布莱克2-256 | 76d99724f6ed08df96fc607cb02ec3793260bbb4a303bfed45fe8fbe8b185c44 |