Repository
OCA/mail · module folder · Try on Runboat
Module version
1.0.1
Category
Social Network
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/mail
Last tracking update
2026-08-07 08:42:57
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Pedro M. Baeza, Sander Lienaerts, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows you to specify templates to override the subject on
the notification emails sent by Odoo

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
mail_notification_custom_subject_form mail.message.custom.subject.form mail.message.custom.subject form New
mail_notification_custom_subject_tree mail.message.custom.subject.tree mail.message.custom.subject list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (6)
  • model_id Many2one → ir.model
    comodel_name='ir.model' help='Model where this template applies' ondelete='cascade' required=True string='Model'
  • name Char
    string='Template Name'
  • position Selection
    default='replace' help='Whether to replace completely, partially, append at beginning or append at end to other templates that apply to a given context' selection=[('append_before', 'Append Before'), ('append_after', 'Append After'), ('replace', 'Replace'), ('inside_replace', 'Partial Replacement')]
  • subject_template Char
    help='Subject (placeholders may be used here)' required=True translate=True
  • subject_to_replace Char
    help='The text that will be replaced. You can use placeholders. E.g.: {{ object.company_id.name }}'
  • subtype_ids Many2many → mail.message.subtype
    comodel_name='mail.message.subtype' required=True string='Applied Subtypes'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • message_post(self, *, body='', subject=None, message_type='notification', email_from=None, author_id=None, parent_id=False, subtype_xmlid=None, subtype_id=False, partner_ids=None, attachments=None, attachment_ids=None, body_is_html=False, **kwargs)
    @api.returns('mail.message', <expr>)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
50 days ago
Last activity
42 days ago
Repository
OCA/mail
Pull request
[19.0][MIG] mail_notification_custom_subject: Migration to 19.0 (#221)