Odoo 19.0 Community · Persistent

hr.expense: fields, relations and API

The hr.expense model ("Expense") is a persistent model declared by the Expenses module, then extended by 3 other modules. It exposes 84 fields, 50 of them declared directly on the model; 10 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
hr.expense
Label
Expense
Type
Persistent (models.Model)
SQL table
hr_expense
Origin module
Expenses (hr_expense)
Extended by
project_hr_expense, sale_expense, project_sale_expense
Default order (_order)
date desc, id desc
Inherits from (mixins)
mail.thread.main.attachmentmail.activity.mixinanalytic.mixin

Model fields

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

84 of 84 fields shown

Technical nameLabelTypeDetails
account_idAccount

An expense account is expected

many2one
computed, stored
account_move_idJournal Entrymany2one
read-only
amount_residualAmount Duemonetary
read-only

related: account_move_id.amount_residual

approval_dateApproval Datedatetime
read-only
approval_stateApproval Stateselection
read-only

Values: submitted (Submitted), approved (Approved), refused (Refused)

attachment_idsAttachmentsone2many

inverse: res_id

can_approveCan Approveboolean
read-onlycomputed
can_be_reinvoicedCan be reinvoicedboolean
computed

added by Sales Expense (sale_expense)

can_resetCan Resetboolean
read-onlycomputed
company_currency_idReport Company Currencymany2one
read-only

related: company_id.currency_id

company_idCompanymany2one
requiredread-only
currency_idCurrencymany2one
requiredcomputed, stored
currency_rateCurrency Ratefloat
read-onlycomputed
dateExpense Datedate
department_idDepartmentmany2one
computed, stored
descriptionInternal Notestext
duplicate_expense_idsDuplicate Expensemany2many
computed
employee_idEmployeemany2one
requiredcomputed, stored
former_sheet_idFormer Reportinteger
is_editableIs Editable By Current Userboolean
read-onlycomputed
is_multiple_currencyIs currency_id different from the company_currency_idboolean
computed
journal_idJournalmany2one
read-only

related: payment_method_line_id.journal_id

label_currency_rateLabel Currency Ratechar
read-onlycomputed
manager_idManagermany2one
computed, stored
message_main_attachment_checksumMessage Main Attachment Checksumchar

related: message_main_attachment_id.checksum

nameDescriptionchar
requiredcomputed, stored
nb_attachmentNumber of Attachmentsinteger
computed
payment_method_line_idPayment Method

The payment method used when the expense is paid by the company.

many2one
computed, stored
payment_modePaid Byselection
required

Values: own_account (Employee (to reimburse)), company_account (Company)

price_unitUnit Pricefloat
requiredread-onlycomputed, stored
product_descriptionProduct Descriptionhtml
computed
product_has_costProduct Has Costboolean
computed
product_has_taxWhether tax is defined on a selected productboolean
computed
product_idCategorymany2one
product_uom_idUnitmany2one
computed, stored
quantityQuantityfloat
required
sale_order_idCustomer to Reinvoice

If the category has an expense policy, it will be reinvoiced on this sales order

many2one
computed, stored

added by Sales Expense (sale_expense)

sale_order_line_idSale Order Linemany2one
read-onlycomputed, stored

added by Sales Expense (sale_expense)

same_receipt_expense_idsSame Receipt Expensemany2many
computed
selectable_payment_method_line_idsSelectable Payment Method Linemany2many
computed
split_expense_origin_idOrigin Split Expense

Original expense from a split.

many2one
stateStatusselection
read-onlycomputed, stored

Values: draft (Draft), submitted (Submitted), approved (Approved), posted (Posted), in_payment (In Payment), paid (Paid), refused (Refused)

tax_amountTax amount

Tax amount in company currency

monetary
computed, stored
tax_amount_currencyTax amount in Currency

Tax amount in currency

monetary
computed, stored
tax_idsIncluded taxes

Both price-included and price-excluded taxes will behave as price-included taxes for expenses.

many2many
computed, stored
total_amountTotalmonetary
computed, stored
total_amount_currencyTotal In Currencymonetary
computed, stored
untaxed_amountTotal Untaxed Amountmonetary
computed, stored
untaxed_amount_currencyTotal Untaxed Amount In Currencymonetary
computed, stored
vendor_idVendormany2one
activity_calendar_event_idNext Activity Calendar Eventmany2one
computed

inherited from mail.activity.mixin

activity_date_deadlineNext Activity Deadlinedate
read-onlycomputed

inherited from mail.activity.mixin

activity_exception_decorationActivity Exception Decoration

Type of the exception activity on record.

selection
computed

Values: warning (Alert), danger (Error)

inherited from mail.activity.mixin

activity_exception_iconIcon

Icon to indicate an exception activity.

char
computed

inherited from mail.activity.mixin

activity_idsActivitiesone2many

inverse: res_id

inherited from mail.activity.mixin

activity_stateActivity State

Status based on activities Overdue: Due date is already passed Today: Activity date is today Planned: Future activities.

selection
computed

Values: overdue (Overdue), today (Today), planned (Planned)

inherited from mail.activity.mixin

activity_summaryNext Activity Summarychar

related: activity_ids.summary

inherited from mail.activity.mixin

activity_type_iconActivity Type Iconchar

related: activity_ids.icon

inherited from mail.activity.mixin

activity_type_idNext Activity Typemany2one

related: activity_ids.activity_type_id

inherited from mail.activity.mixin

activity_user_idResponsible Usermany2one
read-onlycomputed

inherited from mail.activity.mixin

analytic_distributionAnalytic Distributionjson
computed, stored

inherited from analytic.mixin

analytic_precisionAnalytic Precisioninteger

inherited from analytic.mixin

distribution_analytic_account_idsDistribution Analytic Accountmany2many
computed

inherited from analytic.mixin

has_messageHas Messageboolean
computed

inherited from mail.thread

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_main_attachment_idMain Attachmentmany2one

inherited from mail.thread.main.attachment

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

my_activity_date_deadlineMy Activity Deadlinedate
read-onlycomputed

inherited from mail.activity.mixin

rating_idsRatingsone2many

inverse: res_id

inherited from mail.thread

website_message_idsWebsite Messages

Website communication history

one2many

inverse: res_id

inherited from mail.thread

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/hr.expense/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["name","company_id","currency_id","employee_id","payment_mode"],"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}/hr.expense/search_read",
    headers=headers,
    json={"domain": [], "fields": ["name","company_id","currency_id","employee_id","payment_mode"], "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/hr-expense">hr.expense (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.