Package: odoo11-addon-mail-digest
Mail digest notificationsFeaturesThis module allows users/partners to:enable “digest mode” in their notification settingswith digest mode on select a frequency: “daily” or “weekly”configure specific rules per message subtype (enabled/disabled)globally enable/disable digest based on message’s typeto receive or to not receive any email notification for a given subtype.The preference tab on user’s form will look like:Global settingsBy default digest functionality is enabled
for every message type (‘email’, ‘comment’, ‘notification’).
You change this with the config parammail_digest.enabled_message_typeswhereas you can specify message types separated by comma.BehaviorWhen a user with digest mode on is notified with a message or an email
all the messages are collected inside amail.digestcontainer.A daily cron and a weekly cron will take care
of creating a single email per each digest,
which will be sent as a standard email.RulesGiven that the user hasNotification management = Handle by Emails…a message with subtype assignedwill be sentvia digest if:global:mail_digest_enabled_message_typesparam enables the message typeuser: digest mode is ON for the recipientuser: recipient’s user has no specific setting for the subtypeuser: recipient’s user has no specific disabling setting for the subtypea message with subtype assignedwill NOT be sentvia digest if:global:mail_digest_enabled_message_typesparam disables the message typeuser: digest mode is OFF for the recipientuser: recipient’s user has disabled the subtype in her/his settingsNOTE: under the hood the digest notification logic excludes followers to be notified,
since you really want to notify only mail.digest’s partner.Known issues / Roadmaptake full control of message and email template.Right now the notification message and the digest mail itself is wrapped inside Odoo mail template.
We should be able to customize this easily.Migrating to v11Notification settings, in Odoo core,have been moved to user model <https://github.com/odoo/odoo/commit/2950ffaa86ef38263e9a4a59a30d0768f82a61fa#diff-0c15808786b030dc6c62b0b88196afff>,
and the logic changed a bit.At the moment there’s no staight upgrade provided by this module.
If you need to migrate, keep in mind that:mail.digestis now tied to user (partner_id -> user_id)notify_emailhas been removed so to enable digest mode you have to turn on the new flagdigest_modenotify_frequencyhas been moved to user model and is now calleddigest_frequencypartner.notification.confbecameuser.notification.confnotify_conf_idsnow links the new modeluser.notification.confand moved to user modelBug TrackerBugs are tracked onGitHub Issues. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing a detailed and welcomed feedback.CreditsContributorsSimone Orsi <simone.orsi@camptocamp.com>FundersThe development of this module has been financially supported by:Fluxdock.ioMaintainerThis module is maintained by the OCA.OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.To contribute to this module, please visithttps://odoo-community.org.