Skip to main content
Odoo Community Association

Colombia - Verification Digit

Beta License: AGPL-3 OCA/l10n-colombia Translate me on Weblate Try me on Runboat

This module extends the Colombian localization to compute the verification digit (dígito de verificación) of the NIT, as defined in Orden Administrativa 4 of 1989 by the DIAN.

It adds a computed field on the partner form that automatically calculates the check digit from the NIT and displays it next to the identification number with a hyphen separator when the identification type is NIT.

Table of contents

Use Cases / Context

Business Need

In Colombia, every NIT (Número de Identificación Tributaria) issued by the DIAN includes a verification digit (dígito de verificación) computed using a weighted sum algorithm defined in Orden Administrativa 4 of 1989. This digit is required on invoices, tax filings, and legal documents. Odoo does not compute or display this digit natively.

Approach

This module adds a compute_verification_digit function that implements the DIAN algorithm and extends res.partner with a computed field l10n_co_verification_digit that displays the check digit next to the identification number on the partner form, separated by a hyphen (e.g., 900123456 - 8). The verification digit is only shown when the identification type is NIT.

Useful Information

  • Depends on: l10n_latam_base, l10n_co (Colombian localization)

  • Works well with: l10n_co_electronic_invoice and any module that displays partner tax identification

  • Suggested setup: recommended for any Colombian Odoo instance that needs to display or validate the NIT verification digit on partner records and printed documents

Usage

To use this module, you need to:

  • Go to Contacts > select a partner

  • Set the country to Colombia

  • Select NIT as the identification type

  • Enter the NIT in the identification number field (base number without the verification digit)

  • The verification digit is computed automatically and displayed next to the number with a hyphen (e.g., 900123456 - 8)

Changelog

18.0.1.0.0 (2026-07-12)

  • [ADD] Initial release. Compute Colombian NIT verification digit using the DIAN algorithm (Orden Administrativa 4 of 1989). Display the digit next to the identification number on partner form when the identification type is NIT.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Juan Arcos

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

juanparmer

This module is part of the OCA/l10n-colombia project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_l10n_co_verification_digit-18.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_l10n_co_verification_digit-18.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a3a59839d83e636be80eb85c33320f3791bc0955a908dfae0a14b237e405a64
MD5 5f3028091da12a18da9a9051b61126e2
BLAKE2b-256 a17c4769167461b0c8587a241d6986b26d191d04391d1586756cf00ace081afc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

18.0.1.0.0.2 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page