OdooWiki OCA HUB

Permanent Lock Move

account_permanent_lock_move folder_open OCA/account-financial-tools open_in_new
Finance License: AGPL-3

This module extends the functionality of the basic "lock date" functionality in invoicing, in order to add a more definitive lock date (which cannot be empty or set in the past, and only accepts unposted moves)

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Adds a Permanent Lock Date to accounting settings that irreversibly blocks any creation, change or cancellation of journal entries dated on or before that date, for good fiscal year closing.

This module adds a second, stronger lock date next to the standard accounting lock date. The Permanent Lock Date is stored on the company and can only be set through a dedicated wizard, not typed directly.

Where it appears: - In Accounting settings, in the fiscal year section, you see the Permanent Lock Date (read-only) and a button "Permanently Lock Entries". - That button opens a small wizard titled "Lock permanently entries" where you enter the date and confirm with "Lock Journal Entries".

Business rules enforced by the code: - The new date can never be moved backwards: you cannot set it earlier than the date already saved. - You cannot set it if any journal entry dated on or before that date is still in draft (unposted). - Once set, any attempt to create, modify or cancel a journal entry dated on or before the permanent lock date is refused with an error message.

It touches the accounting entries (account.move), the company settings (res.company) and the accounting configuration screen (res.config.settings). The standard lock date behaviour is kept and simply extended.

Depends on

account
Models and fields (4)
  • res.company · extends an existing modelpermanent_lock_date (Permanent Lock Date)
  • account.move · extends an existing model
  • res.config.settings · extends an existing modelpermanent_lock_date (Permanent Lock Date)
  • permanent.lock.date.wizard · new modellock_date (Lock Date), company_id (Company)

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.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/account-financial-tools.

terminal Installation and usage

OCA documentation · Odoo 12.0

To configure this module, you need to:

  • Go to Invoicing -> Settings
  • Set the Permanent Lock Date.

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.