Metadata-Version: 2.1
Name: odoo-addon-l10n_co_verification_digit
Version: 18.0.1.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Compute Colombian NIT verification digit (DIAN algorithm)
Home-page: https://github.com/OCA/l10n-colombia
License: AGPL-3
Author: Juan Arcos, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 4 - Beta
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=============================
Colombia - Verification Digit
=============================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:fa2f7f8a03c3f1a2678b6ed4642b139d845cbd4b04e6261a5c38b73dee478407
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--colombia-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-colombia/tree/18.0/l10n_co_verification_digit
    :alt: OCA/l10n-colombia
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-colombia-18-0/l10n-colombia-18-0-l10n_co_verification_digit
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-colombia&target_branch=18.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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**

.. contents::
   :local:

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 <https://github.com/OCA/l10n-colombia/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 <https://github.com/OCA/l10n-colombia/issues/new?body=module:%20l10n_co_verification_digit%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Juan Arcos

Contributors
------------

- Juan Arcos juanparmer@gmail.com

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

.. |maintainer-juanparmer| image:: https://github.com/juanparmer.png?size=40px
    :target: https://github.com/juanparmer
    :alt: juanparmer

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-juanparmer| 

This module is part of the `OCA/l10n-colombia <https://github.com/OCA/l10n-colombia/tree/18.0/l10n_co_verification_digit>`_ project on GitHub.

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