CMS系统的基本通知管理

odoo11-addon-cms-notification的Python项目详细描述


License: LGPL-3

CMS通知

功能

管理CMS中的通知。提供:

  • 设置菜单项
  • 通知列表的菜单项
  • 当用户有未读通知时,在用户上加亮显示“has\u unread\u notif”标志
  • 在消息子类型上标记cms类型以启用/禁用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_formdocs中指定的表单。 cms_notification扩展了表单行为,允许您 提供所需的字段以及字段和消息之间的映射' 子类型。

classCMSNotificationPanel(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."))@propertydef_form_subtype_fields(self):res=super()._form_subtype_fieldsres.update({'enable_my_type':'module.mt_mytype','enable_my_type2':'module.mt_mytype2',})returnres

使用量

将用户带到其面板:

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

将用户带到其通知中:

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

错误跟踪程序

错误在GitHub Issues上跟踪。在 如果有麻烦,请检查一下你的问题是否已经 报道。如果你首先发现了它,请提供 详细的欢迎反馈。

学分

贡献者

出资人

这个模块的开发得到了:Fluxdock.io的财政支持。

维修人员

Odoo Community Association

此模块由OCA维护。

奥多社区协会是一个非盈利组织。 其任务是支持Odoo的合作开发 特点及推广应用。

若要对此模块作出贡献,请访问https://odoo-community.org

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java组织。openqa。硒。遥远的UnreachableBrowserException如何定义EXE路径?   java Camel AdviceWith不使用指定文件替换端点   基于字符串的java图像加载   Java中的启发式算法,计算8个谜题状态的线性冲突   java为什么不支持文件。probeContentType返回null   JPA@EntityListeners、@PrePersist和Spring@RepositoryEventHandler、@HandleBeforeSave之间的java差异   可能前缀的Java字符串到字符串[]   安装rJava | Makefile时发生java错误。全部:38:target’libjri的配方。所以他失败了   Java公共静态void main()   java如何覆盖txt文件中的某些单词   java如何获得循环中生成的字符值之和?   java Log4j创建另一个具有相同属性的appender   java如何在从Axis2 Web服务客户端通过代理服务器调用Web服务时设置代理设置?   在Windows上安装Elasticsearch时发生java错误   java如何向EditText组件添加TextChangedListener?