Account Journal Restrict Mode
This module enables by default the setting Lock Posted Entries with Hash in all Sales, Purchase and Miscellaneous Journals, and prevents the setting to be modified.
The goal is to assure that all journal entries are locked when posted to prevent them to be modified.
Bank and Cash journals can't be hashed as it conflicts with Odoo's logic when creating bank transactions (https://github.com/odoo/odoo/commit/9740189bc59658a62da6a624e166505841ac30a4).
auto_awesome What this module does
AI-generated from the code · Odoo 19.0This module forces the "Lock Posted Entries with Hash" option on for all Sales, Purchase and Miscellaneous journals, so posted entries in those journals can no longer be changed. Bank and Cash journals are left untouched.
Once installed, the module automatically turns on the "Lock Posted Entries with Hash" setting for every Sales, Purchase and Miscellaneous journal that already exists, and it keeps that setting switched on for any new journal of those types.
- The setting becomes read-only: users cannot turn it off from the journal configuration screen.
- If someone tries to save a Sales, Purchase or Miscellaneous journal without this lock, Odoo blocks the change with an error message saying the journal must have Lock Posted Entries enabled.
- Bank and Cash journals are excluded, so their normal behaviour is not affected.
The module works on the account.journal model and only adds one computed field, restrict_mode_hash_table, which is automatically true for the three journal types mentioned above. There are no new menus, buttons or reports; the change is visible directly in the journal configuration form under Accounting. The purpose is to make sure that once an entry is posted in these journals, it cannot be modified or deleted, which helps with audit trails and legal compliance.
Depends on
Models and fields (1)
- account.journal · extends an existing modelrestrict_mode_hash_table
Text generated by AI (DeepSeek) from reading the Odoo 19.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-03Confirmation status: 5 confirmed, 4 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/account-financial-tools.
terminal Installation and usage
No verified informationInstallation 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.
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.