loyalty.reward: fields, relations and API
The loyalty.reward model ("Loyalty Reward") is a persistent model declared by the Coupons & Loyalty module, then extended by 3 other modules. It exposes 35 fields, 29 of them declared directly on the model; 5 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
loyalty.reward- Label
- Loyalty Reward
- Type
- Persistent (models.Model)
- SQL table
loyalty_reward- Origin module
- Coupons & Loyalty (
loyalty) - Extended by
- pos_loyalty, sale_loyalty, sale_loyalty_delivery
- Default order (_order)
required_points asc- Display field (_rec_name)
description- Inherits from (mixins)
- pos.load.mixin
Model fields
29 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
35 of 35 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| active | Active | boolean | |
| all_discount_product_ids | All Discount Product | many2many | computed |
| clear_wallet | Clear Wallet | boolean | |
| company_id | Company | many2one | related: |
| currency_id | Currency | many2one | related: |
| description | Description | char | requiredcomputed, storedtranslatable |
| discount | Discount | float | |
| discount_applicability | Discount Applicability | selection | Values: |
| discount_line_product_id | Discount Line Product Product used in the sales order to apply the discount. Each reward has its own product for reporting purpose | many2one | |
| discount_max_amount | Max Discount This is the max amount this reward may discount, leave to 0 for no limit. | monetary | |
| discount_mode | Discount Mode | selection | required Values computed at runtime |
| discount_product_category_id | Discounted Prod. Categories | many2one | |
| discount_product_domain | Discount Product Domain | char | |
| discount_product_ids | Discounted Products | many2many | |
| discount_product_tag_id | Discounted Prod. Tag | many2one | |
| is_global_discount | Is Global Discount | boolean | computed |
| multi_product | Multi Product | boolean | computed |
| point_name | Point Name | char | read-only related: |
| program_id | Program | many2one | required |
| program_type | Program Type | selection | related: |
| required_points | Points needed | float | |
| reward_product_domain | Reward Product Domain | char | computed |
| reward_product_id | Product | many2one | |
| reward_product_ids | Reward Products These are the products that can be claimed with this rule. | many2many | computed |
| reward_product_qty | Reward Product Qty | integer | |
| reward_product_tag_id | Product Tag | many2one | |
| reward_product_uom_id | Reward Product Uom | many2one→ uom.uom | computed |
| reward_type | Reward Type | selection | required Values: |
| user_has_debug | User Has Debug | boolean | computed |
| create_date | Created on | datetime | read-onlyautomatic |
| 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
- loyalty.program: program_id
- product.category: discount_product_category_id
- product.product: all_discount_product_ids, discount_line_product_id, discount_product_ids, reward_product_id, reward_product_ids
- product.tag: discount_product_tag_id, reward_product_tag_id
- res.company: company_id
- res.currency: currency_id
- uom.uom: reward_product_uom_id
Fields of other models pointing here
- pos.order.line: reward_id
- sale.loyalty.reward.wizard: reward_ids, selected_reward_id
- sale.order: disabled_auto_rewards
- sale.order.line: reward_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/loyalty.reward/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["description","discount_mode","program_id","reward_type","company_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}/loyalty.reward/search_read",
headers=headers,
json={"domain": [], "fields": ["description","discount_mode","program_id","reward_type","company_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/loyalty-reward">loyalty.reward (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.