Odoo 19.0 Community · Persistent

mail.notification: fields, relations and API

The mail.notification model ("Message Notifications") is a persistent model declared by the Discuss module, then extended by 3 other modules. It exposes 18 fields, 16 of them declared directly on the model; 1 field from other models points to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.

Model identity

Technical name
mail.notification
Label
Message Notifications
Type
Persistent (models.Model)
SQL table
mail_notification
Origin module
Discuss (mail)
Extended by
sms, sms_twilio, snailmail
Display field (_rec_name)
res_partner_id

Model fields

16 own fields, 0 inherited from mixins and 2 automatic ORM fields. Click a name to get a direct link to that field.

18 of 18 fields shown

Technical nameLabelTypeDetails
author_idAuthormany2one
failure_reasonFailure reasontext
failure_typeFailure typeselection

Values: unknown (Unknown error), mail_bounce (Bounce), mail_spam (Detected As Spam), mail_email_invalid (Invalid email address), mail_email_missing (Missing email address), mail_from_invalid (Invalid from address), mail_from_missing (Missing from address), mail_smtp (Connection failed (outgoing mail server problem)), mail_bl (Blacklisted Address), mail_optout (Opted Out), mail_dup (Duplicated Email)

is_readIs Readboolean
letter_idSnailmail Lettermany2one

added by Snail Mail (snailmail)

mail_email_addressMail Email Address

Recipient email address

char
mail_mail_idMail

Optional mail_mail ID. Used mainly to optimize searches.

many2one
mail_message_idMessagemany2one
required
notification_statusStatusselection

Values: ready (Ready to Send), process (Processing), pending (Sent), sent (Delivered), bounce (Bounced), exception (Exception), canceled (Cancelled)

notification_typeNotification Typeselection
required

Values: inbox (Inbox), email (Email)

read_dateRead Datedatetime
res_partner_idRecipientmany2one
sms_idSMSmany2one
computed

added by SMS gateway (sms)

sms_id_intSMS IDinteger

added by SMS gateway (sms)

sms_numberSMS Numberchar

added by SMS gateway (sms)

sms_tracker_idsSMS Trackersone2many

inverse: mail_notification_id

added by SMS gateway (sms)

display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

Reading this model through the API

Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.

curl
curl -X POST "https://your-instance.odoo.com/json/2/mail.notification/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["res_partner_id","mail_message_id","notification_type","author_id","letter_id"],"limit":5}'
Python (requests)
import requests

BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}

res = requests.post(
    f"{BASE_URL}/mail.notification/search_read",
    headers=headers,
    json={"domain": [], "fields": ["res_partner_id","mail_message_id","notification_type","author_id","letter_id"], "limit": 5},
)
res.raise_for_status()
print(res.json())
  • External API access requires Odoo's Custom plan.
  • XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
  • The access rights and record rules of the key's user apply.

Cite this tool

Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.

<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/mail-notification">mail.notification (Odoo 19.0)</a>

Sources

Data verified on September 23, 2026 · Odoo 19.0 Community

Have an Odoo project, or want to put your ERP to work with AI? Let's talk

Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.