Skip to main content

Colombian NIT/VAT validation

Project description

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

This module extends the functionality of the VAT validation in Odoo to support Colombian tax identification numbers (NIT and Cédula).

By default, Odoo does not include a validator for Colombian VAT numbers, which causes constraint errors when saving partners with a Colombian country set. This module adds a check_vat_co method that Odoo automatically picks up during its standard validation flow, accepting any numeric identifier between 3 and 11 digits.

Table of contents

Use Cases / Context

Business Need

In Colombia, partners (companies and individuals) are identified by their NIT (Número de Identificación Tributaria) or Cédula. Odoo’s standard VAT validation does not include a Colombian validator, so saving a partner with country_id set to Colombia raises a ValidationError — even when the entered number is perfectly valid locally. This blocks normal data entry workflows for any Colombian company using Odoo.

Approach

This module adds a check_vat_co method to res.partner, which is the exact hook Odoo’s simple_vat_check looks for dynamically. It strips non-numeric characters (dots, hyphens, spaces) and accepts any identifier between 3 and 11 digits, covering both NIT (up to 10 digits + check digit) and Cédula formats. No changes to existing views or workflows are required — the validator is picked up automatically by Odoo’s constraint engine.

Useful Information

  • Depends on: base, account (for the VAT constraint logic in res.partner)

  • Works well with: l10n_co (Colombian chart of accounts) and any module that creates or imports partners with Colombian fiscal data

  • Suggested setup: recommended for any Odoo instance where the primary operating country is Colombia, or in multicompany setups that include at least one Colombian legal entity

Usage

This module does not impact the user interface.

It works automatically in the background: once installed, Odoo will accept Colombian NIT and Cédula numbers without raising a validation error when the partner’s country is set to Colombia.

Changelog

18.0.1.0.0 (2026-06-04)

  • [ADD] Initial release. Added l10n_co_check_vat validator for Colombian NIT and Cédula numbers, accepting numeric identifiers between 3 and 11 digits.

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.

Project details


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_check_vat-18.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_l10n_co_check_vat-18.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4e0e4749ede5a8a204d8e02c2734f3bdb6460f8853454f552ac91d469b49eb8
MD5 1e43d3dff56dd0a1e2c97a5d0fa0bf07
BLAKE2b-256 d74c127e4eb6a3cfd184f060d96e11769097c73ab75c05e661df99ef15c064a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page