OdooWiki OCA HUB

HR Expense Cancel Confirm

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

When user click to cancel expense sheet, a confirmation wizard will be show, with reason as optional.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds a confirmation step when cancelling an expense sheet, asking for an optional reason before the cancellation is applied.

This module changes how expense sheets are cancelled in Odoo. When a user tries to cancel an expense sheet, a confirmation wizard appears instead of cancelling immediately. The wizard lets the user enter a reason for the cancellation, which is optional.

  • The confirmation applies to hr.expense.sheet records.
  • The reason entered is stored on the related journal entries (account_move_id) together with a flag indicating the cancellation was confirmed.
  • When an expense sheet is posted again (journal entries created), any previously stored cancellation reason is cleared automatically.
  • A system setting hr.expense.sheet.cancel_confirm_disable is created with value True, which can be used to turn off this confirmation behaviour.

The module extends the existing cancel.confirm wizard and the hr.expense.sheet model. It also overrides the unpost action so that cancelling an expense sheet first opens the confirmation wizard. No new menus or reports are added; the change is visible directly on the expense sheet screen when cancelling.

Depends on

Models and fields (2)
  • cancel.confirm · extends an existing model
  • hr.expense.sheet · new model

Text generated by AI (DeepSeek) from reading the Odoo 15.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.

Sources · Odoo 15.0

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

terminal Installation and usage

OCA documentation · Odoo 15.0

By default, the expense sheet confirm will be disabled.

To enable expense sheet cancel confirm, update system parameter,

  • hr_expense_cancel_confirm, add hr.expense.sheet.cancel_confirm_disable = False

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.