Search 1.4 billion lines of Odoo code on GitHub


Author: Camptocamp, Odoo Community Association (OCA)
License: AGPL-3
Branch: 11.0
Repository: 2FM/social
Dependencies: mail
Languages: PO File (7030, 84.4%), Python (979, 11.8%), XML (242, 2.9%), and reStructuredText (79, 0.9%)
Other branches: 10.0
Other repositories: ACCOMODATA-BVBA/social, AITIC/social, AMhadhbi/social, AdriaGForgeFlow/social, Alfa-90/social, BADEP/social, BT-fgarbely/social, BT-scchmid-test/social, BeopenMX/social, Bubbles-IT/social, CB-Gran-Canaria/social, Callino/social, Change2improve/social, CompassionCH/social, Digital5-Odoo/social, Dobtor-OCA/social, DucTruongKomit/social, ERPLibre/social, ForgeFlow/social, Gabinete-Digital/social, Glue-Software-Engineering-AG/social, Gofekra/social, ITISAG-OCA/social, Ingeos/social, Jarsa/social, JazziMc/social, Judystudy/social, KasunDA/social, Kiplangatdan/social, KomarovAlea/social, MathBenTech/social, MediaJockey/social, NL66278/social, NeatNerdPrime/social, NextERP-Romania/social, Nooka10/social, OCA-MUK/social, OCA/social, ORETEK/social, OpencloudPro/social, QubiQ/social, Rad0van/social, SDIsl/social, SanteLibre/social, SequarSrl/social, SeuMarco/social, SolutionSeekers/social, Studio73/social, Syci-Consulting/social, TRESCLOUD/social, Tecnativa/social, Tonow-c2c/social, Vauxoo/social, VitalPet/social, YogeshMahera-SerpentCS/social, a0c/social, aaltinisik/social, acsone/social, adhoc-dev/social, agenterp/social, agenterpgmbh/social, agrista/odoo-social, ajaniszewska-dev/social, akretion/social, anderswallenquist/social, anhvu-sg/social, ansinaesmejor/social, antonyrajserpentcs/social, apachesep/social, apetbiz/social, auditum-lko/social, aurestic/social, avoinsystems/social, ayush5198/social, bealdav/social, bishalgit/social, bitroniq/social, brain-tec/social, brainbeanapps/social, camptocamp/social, cedvict/social, celm1990/social, coopiteasy/social, crnd-inc/social, cunguito/social, dajuayen/social, damcar/social, daramousk/social, denislour/social, diagramsoftware/social, diegobgl/social, dndoanh/social, dozymoe/social, druidoo-dev/social, eLBati/social, eezee-it/social, ermannognan/social, eslammohamed13/social, etobella/social, eugentaga/social, exosoftware/oca-social, extrememicro/social, focusate/oca-social, gab-net/social, gfcapalbo/social, git-service-it-ar/social, grindtildeath/social, gurneyalex/social, haroldtamo/social, hbrunn/social, hibou-io/oca-social, hinfo506/social, i-vyshnevska/social, iRichGit/social, igallart/social, iledarn/social, imranissufo/social, inforconseil/social, inspiredbusiness/social, isos/social, jacky82669513/social, jerrodmartin/social, jobiols/oca-social, kevin070982/social, legalsylvain/social, leonidasthe300/social, lincersolucoes/oca-social, manuelcalerosolis/social, marcozink/social, marionumza/social, markrobinson85/social, masiunas/social, mavs2011bs/social, mechsoftdigital/social, mgielissen/social, minhyk/social, mjadily/social, modoolar/social, moltisinc/social, mozaik-association/social, mpanarin/social, myceliandre/social, nilshamerlinck/social, niulinlnc/social, noorealam96/social, odoogap/social, odoonz/social, ontruck/social, osbzr/gooderp_extra, osiell/social, p-tombez/social, pegonzalezspesol/social, phucngta/social, popama/social, pscloud/social, redblow/social, redcor/social, rlizana/social, rsullivan2704/social, rubensben/social, ruuter/social, sadeqamin/social, sanube/social, scbrianti/social, semamca35/social, sergiocorato/social, sewisoft/social, shiram/social, simahawk/social, skeller1/social, solarprocurement/social, sschmid-test-org/social, steingabelgaard/social, sunflowerit/social, sygel-technology/social, takinobori/oca-social, takobi-online/social, tansadio/social, tbaden/social, tegin/social, tfossoul/social, thinkopensolutions/oca-social, thinkwelltwd/social, thomaspot/social, tirma-sa/social, tosink/social, tschanzt/social, ursais/social, valmarnet/social, vcloud9ray/social, versada/social, westlyou/social, x0rzkov/odoo-social, xavidj/social, xcgd/social, xduran/social, y2gsmith/social, yusniermatos/social, and zestsoftware/social

License: AGPL-3

Mail digest notifications


This module allows users/partners to:

  • enable "digest mode" in their notification settings
  • with 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 type

to receive or to not receive any email notification for a given subtype.

The preference tab on user's form will look like:


Global settings

By default digest functionality is enabled for every message type ('email', 'comment', 'notification'). You change this with the config param mail_digest.enabled_message_types whereas you can specify message types separated by comma.


When a user with digest mode on is notified with a message or an email all the messages are collected inside a mail.digest container.

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.


Given that the user has Notification management = Handle by Emails...

a message with subtype assigned will be sent via digest if:

  • global: mail_digest_enabled_message_types param enables the message type
  • user: digest mode is ON for the recipient
  • user: recipient's user has no specific setting for the subtype
  • user: recipient's user has no specific disabling setting for the subtype

a message with subtype assigned will NOT be sent via digest if:

  • global: mail_digest_enabled_message_types param disables the message type
  • user: digest mode is OFF for the recipient
  • user: recipient's user has disabled the subtype in her/his settings

NOTE: under the hood the digest notification logic excludes followers to be notified, since you really want to notify only mail.digest's partner.

Digest rendering preview

You can check how messages are formatted per each mail subtype by going to /digest/layout-preview in your browser.


Known issues / Roadmap

  • take 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 v11

Notification settings, in Odoo core, have been moved to user model <>, 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.digest is now tied to user (partner_id -> user_id)
  • notify_email has been removed so to enable digest mode you have to turn on the new flag digest_mode
  • notify_frequency has been moved to user model and is now called digest_frequency
  • partner.notification.conf became user.notification.conf
  • notify_conf_ids now links the new model user.notification.conf and moved to user model

Bug Tracker

Bugs are tracked on GitHub 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.




The development of this module has been financially supported by:


Odoo Community Association

This 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 visit