Odoo 19.0 Community · Persistent

website.visitor: fields, relations and API

The website.visitor model ("Website Visitor") is a persistent model declared by the Website module, then extended by 7 other modules. It exposes 41 fields, 36 of them declared directly on the model; 6 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
website.visitor
Label
Website Visitor
Type
Persistent (models.Model)
SQL table
website_visitor
Origin module
Website (website)
Extended by
website_event, website_event_track, website_sale, website_crm, website_livechat, website_sms, website_crm_sms
Default order (_order)
id DESC

Model fields

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

41 of 41 fields shown

Technical nameLabelTypeDetails
access_tokenAccess Tokenchar
required
country_flagCountry Flagchar

related: country_id.image_url

country_idCountrymany2one
read-only
create_dateFirst Connectiondatetime
read-only
discuss_channel_idsVisitor's livechat channelsone2many
read-only

inverse: livechat_visitor_id

added by Website Live Chat (website_livechat)

emailEmailchar
computed
event_registered_idsRegistered Eventsmany2many
computed

added by Events (website_event)

event_registration_count# Registrationsinteger
computed

added by Events (website_event)

event_registration_idsEvent Registrationsone2many

inverse: visitor_id

added by Events (website_event)

event_track_visitor_idsTrack Visitorsone2many

inverse: visitor_id

added by Advanced Events (website_event_track)

event_track_wishlisted_count# Wishlistedinteger
computed

added by Advanced Events (website_event_track)

event_track_wishlisted_idsWishlisted Tracksmany2many
computed

added by Advanced Events (website_event_track)

is_connectedIs connected?

A visitor is considered as connected if his last page view was within the last 5 minutes.

boolean
computed
lang_idLanguage

Language from the website when visitor has been created

many2one
last_connection_datetimeLast Connection

Last page view date

datetime
read-only
last_visited_page_idLast Visited Pagemany2one
computed
lead_count# Leadsinteger
computed

added by Contact Form (website_crm)

lead_idsLeadsmany2many

added by Contact Form (website_crm)

livechat_operator_idSpeaking withmany2one
computed, stored

added by Website Live Chat (website_livechat)

livechat_operator_nameOperator Namechar

related: livechat_operator_id.name

added by Website Live Chat (website_livechat)

mobileMobilechar
computed
nameNamechar

related: partner_id.name

page_count# Visited Pages

Total number of tracked page visited

integer
computed
page_idsVisited Pagesmany2many
computed
partner_idContact

Partner of the last logged in user.

many2one
computed, stored
partner_imagePartner Imagebinary

related: partner_id.image_1920

product_countProducts Views

Total number of product viewed

integer
computed

added by eCommerce (website_sale)

product_idsVisited Productsmany2many
computed

added by eCommerce (website_sale)

session_count# Sessionsinteger
computed

added by Website Live Chat (website_livechat)

time_since_last_actionLast action

Time since last page view. E.g.: 2 minutes ago

char
computed
timezoneTimezoneselection

Values computed at runtime

visit_count# Visits

A new visit is considered if last connection was more than 8 hours ago.

integer
read-only
visitor_page_countPage Views

Total number of visits on tracked pages

integer
computed
visitor_product_countProduct Views

Total number of views on products

integer
computed

added by eCommerce (website_sale)

website_idWebsitemany2one
read-only
website_track_idsVisited Pages Historyone2many
read-only

inverse: visitor_id

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/website.visitor/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["name","access_token","country_id","lang_id","livechat_operator_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}/website.visitor/search_read",
    headers=headers,
    json={"domain": [], "fields": ["name","access_token","country_id","lang_id","livechat_operator_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/website-visitor">website.visitor (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.