Odoo 19.0 Community · Persistent

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 nameLabelTypeDetails
activeActiveboolean
all_discount_product_idsAll Discount Productmany2many
computed
clear_walletClear Walletboolean
company_idCompanymany2one

related: program_id.company_id

currency_idCurrencymany2one

related: program_id.currency_id

descriptionDescriptionchar
requiredcomputed, storedtranslatable
discountDiscountfloat
discount_applicabilityDiscount Applicabilityselection

Values: order (Order), cheapest (Cheapest Product), specific (Specific Products)

discount_line_product_idDiscount Line Product

Product used in the sales order to apply the discount. Each reward has its own product for reporting purpose

many2one
discount_max_amountMax Discount

This is the max amount this reward may discount, leave to 0 for no limit.

monetary
discount_modeDiscount Modeselection
required

Values computed at runtime

discount_product_category_idDiscounted Prod. Categoriesmany2one
discount_product_domainDiscount Product Domainchar
discount_product_idsDiscounted Productsmany2many
discount_product_tag_idDiscounted Prod. Tagmany2one
is_global_discountIs Global Discountboolean
computed
multi_productMulti Productboolean
computed
point_namePoint Namechar
read-only

related: program_id.portal_point_name

program_idProgrammany2one
required
program_typeProgram Typeselection

related: program_id.program_type

required_pointsPoints neededfloat
reward_product_domainReward Product Domainchar
computed
reward_product_idProductmany2one
reward_product_idsReward Products

These are the products that can be claimed with this rule.

many2many
computed
reward_product_qtyReward Product Qtyinteger
reward_product_tag_idProduct Tagmany2one
reward_product_uom_idReward Product Uommany2one
computed
reward_typeReward Typeselection
required

Values: product (Free Product), discount (Discount)

user_has_debugUser Has Debugboolean
computed
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/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}'
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}/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.