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 name | Label | Type | Details |
|---|---|---|---|
| access_token | Security Token | char | |
| consumed | Filled Rating | boolean | |
| create_date | Submitted on | datetime | |
| feedback | Comment | text | |
| is_internal | Visible Internally Only | boolean | related: |
| message_id | Message | many2one | |
| parent_ref | Parent Ref | reference | read-onlycomputed |
| parent_res_id | Parent Document | integer | |
| parent_res_model | Parent Document Model | char | related: |
| parent_res_model_id | Parent Related Document Model | many2one→ ir.model | |
| parent_res_name | Parent Document Name | char | computed, stored |
| partner_id | Customer | many2one | |
| publisher_comment | Publisher comment | text | added by Portal Rating ( |
| publisher_datetime | Commented on | datetime | read-only added by Portal Rating ( |
| publisher_id | Commented by | many2one | read-only added by Portal Rating ( |
| rated_on | Rated On | datetime | |
| rated_partner_id | Rated Operator | many2one | |
| rated_partner_name | Rated Partner Name | char | related: |
| rating | Rating Value | float | |
| rating_image | Image | binary | computed |
| rating_image_url | Image URL | char | computed |
| rating_text | Rating | selection | read-onlycomputed, stored Values: |
| res_id | Document | many2one_reference | required |
| res_model | Document Model | char | read-only related: |
| res_model_id | Related Document Model | many2one→ ir.model | |
| res_name | Resource name | char | computed, stored |
| resource_ref | Resource Ref | reference | read-onlycomputed |
| create_uid | Created by | many2one | read-onlyautomatic |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
| write_date | Last Updated on | datetime | read-onlyautomatic |
| write_uid | Last Updated by | many2one | read-onlyautomatic |
Relations
Models linked from this model
- ir.model: parent_res_model_id, res_model_id
- mail.message: message_id
- res.partner: partner_id, publisher_id, rated_partner_id
Fields of other models pointing here
- im_livechat.channel.member.history: rating_id
- mail.message: rating_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/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}'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.