Account Chart Update Code Digits
This module extends the functionality of account_chart_update to make possible modify the length of acccount codes when checking for updates in the wizard.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you change the number of digits used for account codes when updating your chart of accounts, and warns you about accounts that could not be updated automatically.
This module extends the chart of accounts update wizard so you can control how many digits account codes should have.
- In the update wizard, the 'code digits' field is now visible and editable. When you pick a chart template, it is pre-filled from the value saved on the company.
- When the update runs, the chosen number of digits is saved on the company and used to pad account codes before comparing them with existing accounts, so codes are updated to the new length.
- After the update, the module checks all accounts of the company. Any account whose code length does not match the chosen number of digits is listed in the wizard log with a message asking you to update it manually, because it was not created by the chart template.
- It adds a field on the company to remember the preferred number of account code digits.
It works together with the chart of accounts update wizard and affects company settings and account codes.
Depends on
Models and fields (2)
- res.company · extends an existing modelaccount_code_digits
- wizard.update.charts.accounts · extends an existing modelcode_digits
Text generated by AI (DeepSeek) from reading the Odoo 18.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 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/account-financial-tools.
terminal Installation and usage
OCA documentation · Odoo 18.0Configuration
Source · Odoo 18.0No configuration is needed. By default, the lenght of the account codes is set from chart template. If the chart template has no length, then “6” is set.
To change the account code length:
- Go to _Accounting > Settings > Update Chart Template_
- Modify the field
Account Code Digits - Click on Next with the field
Update accountsselected - Review the accounts to be updated
- Click on Create/Update to apply the new code length to the accounts
Usage
Source · Odoo 18.0The wizard, accessible from _Accounting > Settings > Update Chart Template_, now displays the Account Code Digits field.
The default is the length of each chart template but if modified, the value is saved in a company field and becomes the default value.
No verified information in OCA: Installation.
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.