OdooWiki OCA HUB

HR Expense Petty Cash Sequence

hr_expense_petty_cash_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 that paid by petty cash. 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 13.0

Automatically gives expense reports paid by petty cash their own reference number, starting with EXPC, instead of the standard sequence.

When you create an expense report in Odoo, this module checks whether every expense line on it uses the petty cash payment mode. If they all do, and the report still has the default empty reference, the report is given a number from a dedicated sequence.

That sequence is pre-configured with the prefix EXPC and four digits, so references look like EXPC0001, EXPC0002 and so on. It is created automatically when the module is installed, so no manual setup is needed.

  • Applies only to expense reports (hr.expense.sheet) whose expenses are all paid by petty cash.
  • Reports paid by other means keep the normal numbering.
  • A reference you have already filled in yourself is never overwritten.

This keeps petty cash expense reports clearly separated from regular ones in the numbering, which makes them easier to identify and reconcile. The module builds on the expense sequence and petty cash features and does not add any new menu, screen or button of its own.

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

Text generated by AI (DeepSeek) from reading the Odoo 13.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: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 13.0

You can change the default sequence (EXPC0001) by the one of your choice going to Settings > Technical > Sequences & Identifiers > Sequences, and editing the record Expense report sequence (Petty Cash).

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.