OdooWiki OCA HUB

HR Expense Receipt Require

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

This module allows you to define expense products that requires a receipt to be submitted.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Mark expense products as requiring a receipt, so employees cannot submit an expense (or an expense report) without attaching one. A special permission lets selected users bypass this rule.

This module adds a receipt requirement to expense products. On the product form used for expenses, a new checkbox called "Require a receipt" appears next to the cost field. When it is ticked, any expense line using that product must have at least one attachment before it can be submitted.

The rule is enforced in two places: - When an employee submits individual expenses, Odoo blocks the action and shows the message "You need to provide a receipt to submit this expense!" if a required receipt is missing. - When an expense report (sheet) is submitted, Odoo checks every expense line in it and blocks submission with a message naming the offending expense.

On the expense report form, a checkbox "Allow lines without attachment" is available, but only to members of the group "Expenses-can skip required attachment". When ticked on a report, the receipt requirement is ignored for that report, which is useful for corrections or exceptions.

The module extends the existing expense models hr.expense and hr.expense.sheet, and adds the new field to product.template. It does not create new menus; the new options appear inside the standard expense and product screens.

Depends on

hr_expense
Models and fields (3)
  • hr.expense · extends an existing model
  • hr.expense.sheet · extends an existing modelallow_without_attachment (Allow lines without attachment)
  • product.template · extends an existing modelexpense_receipt_required (Require a receipt)

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

terminal Installation and usage

OCA documentation · Odoo 12.0
  • Go to Expenses > Configuration > Expense Products
  • Create or select a product
  • Check the box "Require a receipt"

Some users may be able to ignore the attachment requirements. This may be useful where a single document may need to be split into several different expense lines. The users allowed this must be added to the "Expenses-can skip required attachment" security group.

  • Create an Expense Report containing a product configured to require attachment
  • Try to submit the Expense Report without an attachment
  • Unless user is member of the "Can skip required attachments" group, a validation error will prevent submitting the Expense Report
  • Upload a file attachment on the expense line and re-submit

No verified information in OCA: Installation.

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.