Account Account Constraint Code
Disallow the modification of the code of accounts that have journal items.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Prevents changing the code of an account once it has journal items, protecting accounting consistency.
This module adds a control on accounting accounts. When a user tries to change the code of an account that already has at least one journal item (a line in an accounting entry), Odoo blocks the change and shows an error message.
- The rule applies to the
account.accountmodel and checks theaccount.move.linemodel. - It is triggered automatically whenever the code field is modified.
- If any journal item is linked to the account, the modification is rejected with the message: "You cannot change the code of account which contains journal items."
- No new menus, screens, or reports are added; the change is only a validation constraint.
This helps keep the audit trail consistent by preventing account codes from being altered after they have been used in transactions.
Depends on
Models and fields (1)
- account.account · 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-03Confirmation 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/account-financial-tools.
terminal Installation and usage
OCA documentation · Odoo 14.0Configuration
Source · Odoo 14.0No configuation needed, effective after install
No verified information in OCA: Installation, Usage.
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.
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.