OdooWiki OCA HUB

HR expense sequence

hr_expense_sequence folder_open OCA/hr-expense open_in_new
Human Resources License: AGPL-3

This module adds the possibility to define a sequence for the expense report's reference. This reference is then set as default when you create a new expense report, using the defined sequence.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds an automatic reference number to expense reports, generated from a configurable sequence (e.g. EX0001), shown on the report form, list, search and printed report.

This module gives every expense report a unique reference number instead of leaving it blank. When a new expense report is created, Odoo automatically assigns the next number from a sequence called "Expense report sequence" (code hr.expense.sheet), which by default starts with the prefix EX followed by four digits, for example EX0001.

The number appears in several places: - On the expense report form, just before the employee field. - In the expense report list, before the report name. - In the search box: searching by text now also matches the reference number, not only the report name. - On the printed expense report, the number is displayed in the report header.

The reference is required and cannot be edited by users, and it is not copied when a report is duplicated, so each report keeps its own unique number. When the module is installed on an existing database, all previously created expense reports are automatically given a number in order of their creation.

The module works on the hr.expense.sheet model and depends on the standard Expenses application. It does not change how expenses are approved or paid; it only adds the reference numbering.

Depends on

hr_expense
Models and fields (1)
  • hr.expense.sheet · extends an existing modelnumber

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 7 confirmed, 2 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/hr-expense.

terminal Installation and usage

OCA documentation · Odoo 18.0

You can change the default sequence (EX0001) by the one of your choice going to Settings \> Technical \> Sequences & Identifiers \> Sequences, and editing the record Expense Report sequence.

You will only have access to that section if your section has Technical features permission check marked.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.