You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
3.9 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. =========================
  5. Mail digest notifications
  6. =========================
  7. Features
  8. --------
  9. This module allows users/partners to:
  10. * enable "digest mode" in their notification settings
  11. * with digest mode on select a frequency: "daily" or "weekly"
  12. * configure specific rules per message subtype (enabled/disabled)
  13. * globally enable/disable digest based on message's type
  14. to receive or to not receive any email notification for a given subtype.
  15. The preference tab on user's form will look like:
  16. .. image:: ./images/preview.png
  17. Global settings
  18. ---------------
  19. By default digest functionality is enabled
  20. for every message type ('email', 'comment', 'notification').
  21. You change this with the config param `mail_digest.enabled_message_types`
  22. whereas you can specify message types separated by comma.
  23. Behavior
  24. --------
  25. When a user with digest mode on is notified with a message or an email
  26. all the messages are collected inside a `mail.digest` container.
  27. A daily cron and a weekly cron will take care
  28. of creating a single email per each digest,
  29. which will be sent as a standard email.
  30. **Rules**
  31. Given that the user has `Notification management = Handle by Emails`...
  32. a message with subtype assigned **will be sent** via digest if:
  33. * global: `mail_digest_enabled_message_types` param enables the message type
  34. * user: digest mode is ON for the recipient
  35. * user: recipient's user has no specific setting for the subtype
  36. * user: recipient's user has no specific disabling setting for the subtype
  37. a message with subtype assigned **will NOT be sent** via digest if:
  38. * global: `mail_digest_enabled_message_types` param disables the message type
  39. * user: digest mode is OFF for the recipient
  40. * user: recipient's user has disabled the subtype in her/his settings
  41. NOTE: under the hood the digest notification logic excludes followers to be notified,
  42. since you really want to notify only mail.digest's partner.
  43. Known issues / Roadmap
  44. ======================
  45. * take full control of message and email template.
  46. Right now the notification message and the digest mail itself is wrapped inside Odoo mail template.
  47. We should be able to customize this easily.
  48. Migrating to v11
  49. ----------------
  50. Notification settings, in Odoo core,
  51. `have been moved to user model <https://github.com/odoo/odoo/commit/2950ffaa86ef38263e9a4a59a30d0768f82a61fa#diff-0c15808786b030dc6c62b0b88196afff>`,
  52. and the logic changed a bit.
  53. At the moment there's no staight upgrade provided by this module.
  54. If you need to migrate, keep in mind that:
  55. * `mail.digest` is now tied to user (partner_id -> user_id)
  56. * `notify_email` has been removed so to enable digest mode you have to turn on the new flag `digest_mode`
  57. * `notify_frequency` has been moved to user model and is now called `digest_frequency`
  58. * `partner.notification.conf` became `user.notification.conf`
  59. * `notify_conf_ids` now links the new model `user.notification.conf` and moved to user model
  60. Bug Tracker
  61. ===========
  62. Bugs are tracked on `GitHub Issues
  63. <https://github.com/OCA/social/issues>`_. In case of trouble, please
  64. check there if your issue has already been reported. If you spotted it first,
  65. help us smash it by providing a detailed and welcomed feedback.
  66. Credits
  67. =======
  68. Contributors
  69. ------------
  70. * Simone Orsi <simone.orsi@camptocamp.com>
  71. Funders
  72. -------
  73. The development of this module has been financially supported by: `Fluxdock.io <https://fluxdock.io>`_
  74. Maintainer
  75. ----------
  76. .. image:: https://odoo-community.org/logo.png
  77. :alt: Odoo Community Association
  78. :target: https://odoo-community.org
  79. This module is maintained by the OCA.
  80. OCA, or the Odoo Community Association, is a nonprofit organization whose
  81. mission is to support the collaborative development of Odoo features and
  82. promote its widespread use.
  83. To contribute to this module, please visit https://odoo-community.org.