OdooWiki OCA HUB

Check Digit on Sequences

sequence_check_digit folder_open OCA/server-ux open_in_new
Reporting License: LGPL-3

This module was written to configure check digits on sequences added on the end. It is useful as a control of the number on visual validation.

It is useful when some manual checks are required or on integrations. The implemented codes can avoid modification of one character and flip of two consecutive characters.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you add an automatic check digit to the end of any sequence number in Odoo, using standard formulas like EAN, Luhn or ISO 7064, so mistyped or swapped characters can be detected.

This module extends the sequence configuration screen. When you open a sequence (for example under Settings > Technical > Sequences), a new field called check digit formula appears next to the implementation field. You can leave it as None or pick one of the standard formulas: EAN, Luhn, Damm, Verhoeff, or several ISO 7064 variants (Mod 11,2; 11,10; 37,2; 37,36; 97,10).

Once a formula is chosen, every number generated by that sequence automatically gets an extra check character appended at the end. The check character is calculated from the generated code itself, so the final number is longer than the raw sequence value.

  • The module validates the formula together with the sequence prefix and suffix; if the combination cannot produce a valid check digit, Odoo shows the error "Format is not accepted" and refuses to save.
  • If a formula is selected but is not implemented, a clear validation error is raised.
  • The behaviour is applied at the moment the next sequence number is produced, so all documents using that sequence receive the check digit.

The module only touches the sequence model ir.sequence and its configuration view. It does not create new menus or reports. It is useful when numbers are read or typed manually, or exchanged with external systems, because a single wrong or swapped character makes the number invalid.

Depends on

base
Models and fields (1)
  • ir.sequence · extends an existing modelcheck_digit_formula

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: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/server-ux.

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Access sequences and configurate the model to use.
  • The model will check if the format of prefix, suffix and number is valid
  • Implemented algorithms
  • Luhn: [0-9]*
  • Damm: [0-9]*
  • Verhoeff: [0-9]*
  • ISO 7064 Mod 11, 2: [0-9]*
  • ISO 7064 Mod 11, 10: [0-9]*
  • ISO 7064 Mod 37, 2: [0-9A-Z]*
  • ISO 7064 Mod 37, 36: [0-9A-Z]*
  • ISO 7064 Mod 97, 10: [0-9A-Z]*

No verified information in OCA: Installation, Configuration.

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.