Mail Message Destiny Link Template
mail_message_destiny_link_template
Mail template to show destiny records in chatter.
Mail Message Destiny Link Template
This module provides an email template to show which target records have been modified by a source record.
Example: When a purchase order generates an invoice, the invoice contains a message indicating its origin with a link to the purchase order. However, the purchase order does not log any message stating that it has generated an invoice. This module allows developers to implement that functionality by providing a ready-to-use template.
⚠️ This module does not add functionality by itself. It is part of the server-ux repository and is intended for developers, who can implement the provided template as needed. The module includes an example code snippet to illustrate how to use it.
Table of contents
Use Cases / Context
This module has been created to obtain a reverse template of message_origin_link (which allows you to link the origin record in the chatter).
Usage
To use this module, make sure that the template you are going to write the message inherits from mail.thread.
You can call the template like this:
def custom_function(self):
"""Adds a chatter message to origin and destiny records"""
for record in self:
destiny_records = record._create_destiny_records() # A bunch of Destiny Records
mt_note_subtype_id = self.env['ir.model.data']._xmlid_to_res_id('mail.mt_note')
# Add note to chatter that indicates destiny records
record.message_post_with_view(
'mail_message_destiny_link_template.message_destiny_link',
values={'self': record, 'destiny': destiny_records, "edit": False or True},
subtype_id=mt_note_subtype_id,
)
# Origin Link common usage to show differences
for destiny_record in destiny_records:
destiny_record.message_post_with_view(
'mail.message_origin_link',
values={'self': destiny_record, 'origin': record, "edit": False or True},
subtype_id=mt_note_subtype_id,
)
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
- Moduon
Contributors
- Eduardo de Miguel (Moduon <https://www.moduon.team/>__)
Maintainers
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.
Current maintainers:
This module is part of the OCA/server-ux project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Ce que l'application ne fait pas
L'éditeur n'a pas encore publié la liste de ce que l'application ne fait pas. C'est une règle du magasin : demandez-la au support avant de vous engager.
Applications du magasin nécessaires
Aucune.
Modules Odoo Community utilisés
mail
| Série | Version | État | Publiée le |
|---|---|---|---|
| 19.0 | 19.0.1.0.0 | En développement | 23/09/2026 |
Fiche générée depuis julien2364/omnifloo-oca-server-ux (branche 19.0, commit f2485eef1437).
Contrôle automatique du magasin (distinct de l'éditeur), appliqué à toutes les applications. À corriger : Tests automatisés (tests/test_*.py).
| Contrôle | Résultat | Effet si absent |
|---|---|---|
| Manifeste lisible sans exécution | conforme | bloquant |
| Licence reconnue (LGPL-3) | conforme | bloquant |
| Aucune dépendance vers Odoo Enterprise | conforme | bloquant |
| Aucun import de code Enterprise | conforme | bloquant |
| Aucun en-tête de licence Enterprise | conforme | bloquant |
| Icône static/description/icon.png | conforme | déclasse |
| Description (static/description/index.html ou README) | conforme | déclasse |
| Tests automatisés (tests/test_*.py) | absent | déclasse |
| Traduction française (i18n/fr.po) | absent | info |
| Section « Ce que le module ne fait pas » | absent | info |
Avis des clients connectés. Un avis noté par client ; l'éditeur peut y répondre. Connectez-vous pour laisser un avis.
- Éditeur
- Odoo Community Association (OCA)
- Signaler un problème
- https://github.com/OCA/server-ux
- Clients Omnifloo
- Support inclus selon votre formule : centre d'aide.