Odoo 19.0 Community · Persistent

utm.campaign: fields, relations and API

The utm.campaign model ("UTM Campaign") is a persistent model declared by the UTM Trackers module, then extended by 10 other modules. It exposes 37 fields, 31 of them declared directly on the model; 14 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
utm.campaign
Label
UTM Campaign
Type
Persistent (models.Model)
SQL table
utm_campaign
Origin module
UTM Trackers (utm)
Extended by
crm, sale, hr_recruitment, link_tracker, mass_mailing, mass_mailing_crm, mass_mailing_sms, mass_mailing_crm_sms, mass_mailing_sale, mass_mailing_sale_sms
Display field (_rec_name)
title

Model fields

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

37 of 37 fields shown

Technical nameLabelTypeDetails
ab_testing_completedA/B Testing Campaign Finishedboolean
read-onlycomputed, stored

added by Email Marketing (mass_mailing)

ab_testing_mailings_countA/B Test Mailings #integer
computed

added by Email Marketing (mass_mailing)

ab_testing_mailings_sms_countA/B Test Mailings SMS #integer
computed

added by SMS Marketing (mass_mailing_sms)

ab_testing_schedule_datetimeSend Final On

Date that will be used to know when to determine and send the winner mailing

datetime

added by Email Marketing (mass_mailing)

ab_testing_sms_winner_selectionSMS Winner Selectionselection

Values: manual (Manual), clicks_ratio (Highest Click Rate)

added by SMS Marketing (mass_mailing_sms)

ab_testing_winner_mailing_idA/B Campaign Winner Mailingmany2one

added by Email Marketing (mass_mailing)

ab_testing_winner_selectionWinner Selection

Selection to determine the winner mailing that will be sent.

selection

Values: manual (Manual), opened_ratio (Highest Open Rate), clicks_ratio (Highest Click Rate), replied_ratio (Highest Reply Rate)

added by Email Marketing (mass_mailing)

activeActiveboolean
bounced_ratioBounced Ratiofloat
computed

added by Email Marketing (mass_mailing)

click_countNumber of clicks generated by the campaigninteger
computed

added by Link Tracker (link_tracker)

colorColor Indexinteger
company_idCompanymany2one

added by Sales (sale)

crm_lead_countLeads/Opportunities countinteger
computed

added by CRM (crm)

currency_idCurrencymany2one

related: company_id.currency_id

added by Sales (sale)

invoiced_amountRevenues generated by the campaigninteger
computed

added by Sales (sale)

is_auto_campaignAutomatically Generated Campaign

Allows us to filter relevant Campaigns

boolean
is_mailing_campaign_activatedIs Mailing Campaign Activatedboolean
computed

added by Email Marketing (mass_mailing)

mailing_mail_countNumber of Mass Mailinginteger
computed

added by Email Marketing (mass_mailing)

mailing_mail_idsMass Mailingsone2many

inverse: campaign_id

added by Email Marketing (mass_mailing)

mailing_sms_countNumber of Mass SMSinteger
computed

added by SMS Marketing (mass_mailing_sms)

mailing_sms_idsMass SMSone2many

inverse: campaign_id

added by SMS Marketing (mass_mailing_sms)

nameCampaign Identifierchar
requiredcomputed, stored
opened_ratioOpened Ratiofloat
computed

added by Email Marketing (mass_mailing)

quotation_countQuotation Countinteger
computed

added by Sales (sale)

received_ratioReceived Ratiofloat
computed

added by Email Marketing (mass_mailing)

replied_ratioReplied Ratiofloat
computed

added by Email Marketing (mass_mailing)

stage_idStagemany2one
required
tag_idsTagsmany2many
titleCampaign Namechar
requiredtranslatable
use_leadsUse Leadsboolean
computed

added by CRM (crm)

user_idResponsiblemany2one
required
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/utm.campaign/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["title","name","stage_id","user_id","ab_testing_winner_mailing_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}/utm.campaign/search_read",
    headers=headers,
    json={"domain": [], "fields": ["title","name","stage_id","user_id","ab_testing_winner_mailing_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/utm-campaign">utm.campaign (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.