Odoo 19.0 Community · Persistent

gamification.badge: fields, relations and API

The gamification.badge model ("Gamification Badge") is a persistent model declared by the Gamification module, then extended by 3 other modules. It exposes 52 fields, 23 of them declared directly on the model; 9 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
gamification.badge
Label
Gamification Badge
Type
Persistent (models.Model)
SQL table
gamification_badge
Origin module
Gamification (gamification)
Extended by
hr_gamification, survey, website_profile
Inherits from (mixins)
mail.threadimage.mixinwebsite.published.mixin

Model fields

23 own fields, 23 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.

52 of 52 fields shown

Technical nameLabelTypeDetails
activeActiveboolean
challenge_idsReward of Challengesone2many

inverse: reward_id

descriptionDescriptionhtml
translatable
goal_definition_idsRewarded by

The users that have succeeded these goals will receive automatically the badge.

many2many
granted_countTotal

The number of time this badge has been received.

integer
computed
granted_employees_countGranted Employees Countinteger
computed

added by HR Gamification (hr_gamification)

granted_users_countNumber of users

The number of time this badge has been received by unique users.

integer
computed
levelForum Badge Levelselection

Values: bronze (Bronze), silver (Silver), gold (Gold)

nameBadgechar
requiredtranslatable
owner_idsOwners

The list of instances of this badge granted to users

one2many

inverse: badge_id

remaining_sendingRemaining Sending Allowed

If a maximum is set

integer
computed
rule_authAllowance to Grant

Who can grant this badge

selection
required

Values: everyone (Everyone), users (A selected list of users), having (People having some badges), nobody (No one, assigned through challenges)

rule_auth_badge_idsRequired Badges

Only the people having these badges can give this badge

many2many
rule_auth_user_idsAuthorized Users

Only these people can give this badge

many2many
rule_maxMonthly Limited Sending

Check to set a monthly limit per person of sending this badge

boolean
rule_max_numberLimitation Number

The maximum number of time this badge can be sent per month per person.

integer
stat_myMy Total

The number of time the current user has received this badge.

integer
computed
stat_my_monthly_sendingMy Monthly Sending Total

The number of time the current user has sent this badge this month.

integer
computed
stat_my_this_monthMy Monthly Total

The number of time the current user has received this badge this month.

integer
computed
stat_this_monthMonthly total

The number of time this badge has been received this month.

integer
computed
survey_idSurveymany2one
computed, stored

added by Surveys (survey)

survey_idsSurvey Idsone2many

inverse: certification_badge_id

added by Surveys (survey)

unique_owner_idsUnique Owners

The list of unique users having received this badge.

many2many
computed
can_publishCan Publishboolean
computed

inherited from website.published.mixin

has_messageHas Messageboolean
computed

inherited from mail.thread

image_1024Image 1024image

related: image_1920

inherited from image.mixin

image_128Image 128image

related: image_1920

inherited from image.mixin

image_1920Imageimage

inherited from image.mixin

image_256Image 256image

related: image_1920

inherited from image.mixin

image_512Image 512image

related: image_1920

inherited from image.mixin

is_publishedIs Publishedboolean

inherited from website.published.mixin

message_attachment_countAttachment Countinteger
computed

inherited from mail.thread

message_follower_idsFollowersone2many

inverse: res_id

inherited from mail.thread

message_has_errorMessage Delivery error

If checked, some messages have a delivery error.

boolean
computed

inherited from mail.thread

message_has_error_counterNumber of errors

Number of messages with delivery error

integer
computed

inherited from mail.thread

message_has_sms_errorSMS Delivery error

If checked, some messages have a delivery error.

boolean
computed

inherited from mail.thread

message_idsMessagesone2many

inverse: res_id

inherited from mail.thread

message_is_followerIs Followerboolean
computed

inherited from mail.thread

message_needactionAction Needed

If checked, new messages require your attention.

boolean
computed

inherited from mail.thread

message_needaction_counterNumber of Actions

Number of messages requiring action

integer
computed

inherited from mail.thread

message_partner_idsFollowers (Partners)many2many
computed

inherited from mail.thread

rating_idsRatingsone2many

inverse: res_id

inherited from mail.thread

website_absolute_urlWebsite Absolute URL

The full absolute URL to access the document through the website.

char
computed

inherited from website.published.mixin

website_message_idsWebsite Messages

Website communication history

one2many

inverse: res_id

inherited from mail.thread

website_publishedVisible on current websiteboolean

related: is_published

inherited from website.published.mixin

website_urlWebsite URL

The full relative URL to access the document through the website.

char
computed

inherited from website.published.mixin

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/gamification.badge/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["name","rule_auth","survey_id","active","level"],"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}/gamification.badge/search_read",
    headers=headers,
    json={"domain": [], "fields": ["name","rule_auth","survey_id","active","level"], "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/gamification-badge">gamification.badge (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.