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.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Provides a ready-to-use email/chatter template that lists the records a source record has created or modified, with clickable links to those records. It adds no visible feature on its own; developers use it in their own modules.
This module is a developer tool. It does not add any menu, button, report or automatic behaviour by itself. What it provides is a single message template named message_destiny_link that developers can call from their own code when they want to post a message in a record's chatter.
The template writes a short sentence in the chatter of the source record. If the source record has modified other records, the sentence starts with "This <record type> has modified:"; if it has created them, it starts with "This <record type> has created:". After that it lists each affected record using its display name, and every name is a clickable link that opens that record directly in Odoo.
Because the module depends only on mail, it works with the standard chatter and messaging system. The template is stored as data, so it is available for other modules to reference. No models, fields, menus or scheduled actions are defined here, and no business rules, checks or emails are triggered automatically. The only thing that changes in Odoo is the availability of this template for developers to reuse.
Depends on
Required by other modules
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 4 confirmed, 5 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/server-ux.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0To 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,
)No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.