Odoo 19.0 Community · Persistent

rating.rating: fields, relations and API

The rating.rating model ("Rating") is a persistent model declared by the Customer Rating module, then extended by 2 other modules. It exposes 32 fields, 27 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
rating.rating
Label
Rating
Type
Persistent (models.Model)
SQL table
rating_rating
Origin module
Customer Rating (rating)
Extended by
im_livechat, portal_rating
Default order (_order)
write_date desc, id desc
Display field (_rec_name)
res_name

Model fields

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

32 of 32 fields shown

Technical nameLabelTypeDetails
access_tokenSecurity Tokenchar
consumedFilled Ratingboolean
create_dateSubmitted ondatetime
feedbackCommenttext
is_internalVisible Internally Onlyboolean

related: message_id.is_internal

message_idMessagemany2one
parent_refParent Refreference
read-onlycomputed
parent_res_idParent Documentinteger
parent_res_modelParent Document Modelchar

related: parent_res_model_id.model

parent_res_model_idParent Related Document Modelmany2one
parent_res_nameParent Document Namechar
computed, stored
partner_idCustomermany2one
publisher_commentPublisher commenttext

added by Portal Rating (portal_rating)

publisher_datetimeCommented ondatetime
read-only

added by Portal Rating (portal_rating)

publisher_idCommented bymany2one
read-only

added by Portal Rating (portal_rating)

rated_onRated Ondatetime
rated_partner_idRated Operatormany2one
rated_partner_nameRated Partner Namechar

related: rated_partner_id.name

ratingRating Valuefloat
rating_imageImagebinary
computed
rating_image_urlImage URLchar
computed
rating_textRatingselection
read-onlycomputed, stored

Values: top (Happy), ok (Neutral), ko (Unhappy), none (Not Rated yet)

res_idDocumentmany2one_reference
required
res_modelDocument Modelchar
read-only

related: res_model_id.model

res_model_idRelated Document Modelmany2one
res_nameResource namechar
computed, stored
resource_refResource Refreference
read-onlycomputed
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/rating.rating/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["res_name","res_id","message_id","parent_res_model_id","partner_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}/rating.rating/search_read",
    headers=headers,
    json={"domain": [], "fields": ["res_name","res_id","message_id","parent_res_model_id","partner_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/rating-rating">rating.rating (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.