Mail Force Email Notification

Context key to define notifications to be sent by emaildefined by force_notification_by_email context key

Technical Name:
mail_force_email_notification
Version:
18.0
License:
Author:
Camptocamp
https://odoo-community.org/web/image/product.template/716434/image_1920?unique=6f21ce1
  • Odoo Version

Read the rules established to regulate the OCA (Bylaws )

Mail Force Email Notification

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

This module extends the functionality of Odoo's mail notification system to allow forcing email notifications through context keys. By default, Odoo sends internal notifications to connected users and email notifications to external partners or disconnected users.

With this module, you can override this behavior by setting the force_notification_by_email context key, ensuring specific notifications are always sent by email regardless of the user's connection status or notification preferences. This is particularly useful when you need to maintain an email trail for certain communications or ensure critical notifications are delivered via email.

Table of contents

Usage

To use this module, you need to:

  1. For developers implementing the feature:

    • Add the context key force_notification_by_email=True when sending messages through the mail thread
    self.env['mail.thread'].with_context(
        force_notification_by_email=True
    ).message_post(
        body="Your message",
        partner_ids=[partner.id],
    )
    
  2. For end users:

    • No specific configuration is needed
    • When developers have implemented the feature in specific actions:
      • Messages will be sent by email regardless of your notification preferences
      • You will receive email notifications even if you are connected to Odoo
      • Your notification preferences in your user settings won't affect these specific notifications

Example Use Cases:

  • Critical notifications that need email documentation
  • Automated workflows where email trail is required
  • Compliance requirements where email proof of communication is necessary

Note: This module only affects notifications where the context key has been specifically implemented. All other notifications will follow standard Odoo behavior.

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 to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Other credits

The development of this module has been financially supported by Camptocamp.

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

This module is part of the OCA/mail project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

This is a preview of the recently viewed products by the user.
Once the user has seen at least one product this snippet will be visible.

Recently viewed Products