Odoo Community Association

Mail Gateway

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

This module will allow you to integrate an external chat system in your Odoo system. It requires extra modules with the specific configuration of each chat system, like mail_gateway_telegram or mail_gateway_whatsapp.

This way, a group of users can respond customers or any other set of partners within Odoo, but the messages will be sent through the external chat system.

Table of contents

Configuration

  • Access in development mode
  • Go to Settings / Technical / Email / Gateway
  • Create a gateway. Follow the instruction of the specific tab in order to integrate it.
  • Start receiving notifications

Usage

Only the members of the Gateway / User group can use the features below.

Receiving and answering messages

When external messages are received, they are sent to the Gateway tab of the Discuss app and of the messaging menu. When the user is member of more than one gateway, the tab can be filtered by gateway. Answering these messages sends the answer to the external contact.

From a gateway conversation we can also:

  • Link a received message to any record with the Link to thread message action. The message is then also shown on the chatter of that record.
  • Create a contact for the external sender, or link the sender to an existing contact, with the New Partner conversation action or the Manage guest action of the member list.
  • Open the contact linked to the conversation with the Open Contact conversation action.

Sending messages from a record

On a record whose followers can be reached through a gateway, use the Gateway button of the chatter. For each of these followers, select the gateway channel to use and send the message. The full composer allows to use mail templates and to schedule the message.

A message already posted on a record can also be sent later through a gateway with the Send with gateway message action.

The delivery status of each gateway message is shown on the message. The reason of a failed delivery is shown when clicking on the status icon.

It is recommended to enable the Odoo notifications in the chatter for all the users that will receive messages from gateways.

Changelog

20.0.1.0.0

Migration to 20.0.

Changes required by Odoo 20.0

  • The Discuss sidebar categories don’t exist anymore: the gateway channels are listed in a new Gateway tab of the Discuss app and of the messaging menu, only shown to gateway users. As a consequence, the user setting Gateway Category Open has been removed.
  • The ir.websocket override has been removed: Odoo already subscribes the users to the bus of the channels they are member of, gateway channels included.
  • The mail.resend.message extension has been removed, as this wizard doesn’t exist anymore. The failure reason of a gateway notification is now shown in the notification popover of the message.
  • The pre-init hook has been removed: the column it created has not been used since 16.0.

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

  • Creu Blanca
  • Dixmit

Contributors

  • Enric Tobella
  • Olga Marco
  • Tecnativa
    • Carlos Roca
    • Eduardo Ezerouali

Other credits

This work has been funded by AEOdoo (Asociación Española de Odoo - https://www.aeodoo.org)

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.