OdooWiki OCA HUB

Hr Payroll Cancel

hr_payroll_cancel folder_open OCA/hr open_in_new
HR License: AGPL-3

This module allows the user to cancel a payslip whatever the previous state is without doing a refund. When the user cancel the journal entry is deleted and the payslip state is set to rejected. Then the user is able to set the state to draft again and later on he/she is able to confirm again the payslip.

If there’s a refund for a payslip the user should not cancel the entry because the refund would still be confirm. In that case, the user have either to confirm again the payslip or cancel the refund.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Lets you cancel a payslip from any state without creating a refund, deleting or reversing its accounting entry and setting the payslip to cancelled. It also blocks cancelling a payslip while its refunded payslip is still active.

This module extends payslips (hr.payslip) so that the Cancel button is available in more situations: draft, hr_check, confirm, verify and done. When you cancel a payslip, the related accounting journal entry is removed if the journal allows cancelling posted entries, otherwise it is reversed, and the payslip is set to cancelled.

A new field "Refunded Payslip" is added to the payslip form. It is filled automatically when you use the refund function, linking the original payslip to the refund it generated. The field is only shown when it has a value.

A business rule is enforced: you cannot cancel the original payslip while its refunded payslip is not cancelled. In that case Odoo shows an error asking you to cancel the refunded payslip first.

The module touches the payslip screen and the accounting entries behind payslips. It depends on the accounting cancellation feature and the payroll accounting module.

Depends on

account_cancelhr_payroll_account

Required by other modules

Models and fields (1)
  • hr.payslip · extends an existing modelrefunded_id (Refunded Payslip)

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: Payroll -> Employee Payslip

  • Choose a payslip from the list.
  • Click on the button "Cancel Payslip" to cancel the payslip.
  • Now the payslip is in rejected state.

No verified information in OCA: Installation, Configuration.

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.