OdooWiki OCA HUB

Account Payment Order Lock Draft

account_payment_order_lock_draft folder_open OCA/bank-payment open_in_new
Uncategorised License: AGPL-3

This module adds functionality that prevents invoices from being reset to the draft status if they are linked to a Payment Order that is in progress.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Prevents resetting invoices or journal entries to draft when they are linked to a payment order. If you try, Odoo shows an error and blocks the action.

This module adds a safety check to the accounting area of Odoo. When a user tries to reset an invoice or journal entry back to draft status, the system first checks whether any of its journal item lines are linked to a payment order.

If a link exists, the reset is blocked and an error message appears: "You can't reset to draft because it's already associated with a Payment Order." This prevents breaking the connection between an invoice and a payment order that is already in progress.

The check is applied on the account.move model, which covers invoices, credit notes, and other journal entries. It works by looking at the payment_line_ids on the journal items (line_ids) of the move.

No new menus, buttons, or reports are added. The module only changes the behaviour of the existing "Reset to Draft" action. It depends on the account_payment_order module, which provides the payment order functionality and the link between journal items and payment lines.

Models and fields (1)
  • account.move · extends an existing model

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

Confirmed on 2026-11-03 in branch 14.0 of OCA/bank-payment.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.