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 name | Label | Type | Details |
|---|---|---|---|
| author_id | Author | many2one | |
| failure_reason | Failure reason | text | |
| failure_type | Failure type | selection | Values: |
| is_read | Is Read | boolean | |
| letter_id | Snailmail Letter | many2one | added by Snail Mail ( |
| mail_email_address | Mail Email Address Recipient email address | char | |
| mail_mail_id | Mail Optional mail_mail ID. Used mainly to optimize searches. | many2one | |
| mail_message_id | Message | many2one | required |
| notification_status | Status | selection | Values: |
| notification_type | Notification Type | selection | required Values: |
| read_date | Read Date | datetime | |
| res_partner_id | Recipient | many2one | |
| sms_id | SMS | many2one→ sms.sms | computed added by SMS gateway ( |
| sms_id_int | SMS ID | integer | added by SMS gateway ( |
| sms_number | SMS Number | char | added by SMS gateway ( |
| sms_tracker_ids | SMS Trackers | one2many | inverse: added by SMS gateway ( |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
Relations
Models linked from this model
- mail.mail: mail_mail_id
- mail.message: mail_message_id
- res.partner: author_id, res_partner_id
- sms.sms: sms_id
- sms.tracker: sms_tracker_ids
- snailmail.letter: letter_id
Fields of other models pointing here
- sms.tracker: mail_notification_id
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 -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}'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.