Odoo 19.0 Community · Persistent

mailing.trace: fields, relations and API

The mailing.trace model ("Mailing Statistics") is a persistent model declared by the Email Marketing module, then extended by 1 other module. It exposes 31 fields, 25 of them declared directly on the model; 2 fields from other models point 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
mailing.trace
Label
Mailing Statistics
Type
Persistent (models.Model)
SQL table
mailing_trace
Origin module
Email Marketing (mass_mailing)
Extended by
mass_mailing_sms
Default order (_order)
create_date DESC
Display field (_rec_name)
id

Model fields

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

31 of 31 fields shown

Technical nameLabelTypeDetails
campaign_idCampaignmany2one
read-only

related: mass_mailing_id.campaign_id

emailEmail

Normalized email address

char
failure_reasonFailure reasontext
read-only
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_dup (Duplicated Email), mail_optout (Opted Out)

is_test_traceGenerated for testingboolean
mail_mail_idMailmany2one
mail_mail_id_intMail ID (tech)

ID of the related mail_mail. This field is an integer field because the related mail_mail can be deleted separately from its statistics. However the ID is needed for several action and controllers.

integer
mass_mailing_idMailingmany2one
medium_idMediummany2one

related: mass_mailing_id.medium_id

message_idMessage-IDchar
modelDocument modelchar
required
open_datetimeOpened Ondatetime
reply_datetimeReplied Ondatetime
res_idDocument IDmany2one_reference
sent_datetimeSent Ondatetime
sms_codeCodechar

added by SMS Marketing (mass_mailing_sms)

sms_idSMSmany2one
computed

added by SMS Marketing (mass_mailing_sms)

sms_id_intSMS IDinteger

added by SMS Marketing (mass_mailing_sms)

sms_numberNumberchar

added by SMS Marketing (mass_mailing_sms)

sms_tracker_idsSMS Trackersone2many

inverse: mailing_trace_id

added by SMS Marketing (mass_mailing_sms)

source_idSourcemany2one

related: mass_mailing_id.source_id

trace_statusStatusselection

Values: outgoing (Outgoing), process (Processing), pending (Sent), sent (Delivered), open (Opened), reply (Replied), bounce (Bounced), error (Exception), cancel (Cancelled)

trace_typeTypeselection
required

Values: mail (Email)

create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
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/mailing.trace/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["id","model","trace_type","campaign_id","mail_mail_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}/mailing.trace/search_read",
    headers=headers,
    json={"domain": [], "fields": ["id","model","trace_type","campaign_id","mail_mail_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/mailing-trace">mailing.trace (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.