OdooWiki OCA HUB

Account Chart Update Code Digits

account_chart_update_code_digits folder_open OCA/account-financial-tools open_in_new
Accounting License: AGPL-3

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.0

Lets 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.

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation 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.0

No 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 accounts selected
  • Review the accounts to be updated
  • Click on Create/Update to apply the new code length to the accounts

The 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.

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.