- All products
- Document Type Validation
- All products
Document Type Validation
Ensure the accuracy of VAT and Identification numbers
Prevent data entry errors with strict or flexible validation rules for DNI, RUC, Passport and other ID types.
What are we solving?
Data Integrity
Avoid invalid identification numbers that cause problems in electronic invoicing and tax reports. Validate lengths and types (numeric/alphanumeric) automatically.
Potencia Regex Personalizada
Need a specific format such as "ABC-123"? Use the new Validation Regex field to define your own rules without writing Python code. Ideal for foreign IDs.
Complete Configuration Guide
Campos Clave:
- Length: Required number of characters (e.g. 8 for DNI).
- Exact Length: Choose 'Exact' (must be equal) or 'Maximum' (must not exceed).
- Type: 'Numeric' (0-9), 'Alphanumeric' (Letters and Numbers) or 'Other'.
- Validation Regex: Advanced pattern (takes priority over the 'Type' field).
Step-by-Step Configuration:
Standard Setup (RUC)
Path: Contacts > Configuration > Identification Types.
Config: Length 11, Exact, Numeric.
Setup Avanzado (Foreign ID)
Regex: ^[A-Z]{2}-\d{6}$
Result: Only formats such as "US-123456" will be allowed.
Operating Manual
Real-Time Feedback
A red alert box appears if the ID is invalid, before you try to save.
Blocking Constraint
It is technically impossible to save a contact with an invalid ID, protecting the database.
Soporte Multinacional
Define flexible rules for foreign passports using the 'Maximum' option.
Validation Scenarios (QA)
Numeric Integrity: Entering letters in a numeric DNI field must block saving.
Length Constraint: Validate that 5 digits fail when an 'Exact' length of 8 is required.
Regex Validation: Test that complex formats (e.g. ABC-123) respect uppercase letters and hyphens.
Import Protection: When importing a CSV, Odoo must reject rows that break the rules.
Preguntas Frecuentes
I configured a Regex and it doesn't work. Why?
Make sure you use the anchors ^ (start) and $ (end) so that it matches the whole string. Example: ^\d{8}$.
How do I handle passports of variable length?
Set Length to 20, Exact Length to 'Maximum' and Type to 'Alphanumeric'.
Corporate Sales
EMAIL leads@ganemo.comDirect Advisory
WHATSAPP +1 828 672 6150Technical Support
Questions about Regex syntax for a specific ID? Our support team can help you.
ayuda@ganemo.comDocument Type Validation
Ensure the accuracy of VAT and Identification numbers
Prevent data entry errors with strict or flexible validation rules for DNI, RUC, Passport and other ID types.
What are we solving?
Data Integrity
Avoid invalid identification numbers that cause problems in electronic invoicing and tax reports. Validate lengths and types (numeric/alphanumeric) automatically.
Potencia Regex Personalizada
Need a specific format such as "ABC-123"? Use the new Validation Regex field to define your own rules without writing Python code. Ideal for foreign IDs.
Complete Configuration Guide
Campos Clave:
- Length: Required number of characters (e.g. 8 for DNI).
- Exact Length: Choose 'Exact' (must be equal) or 'Maximum' (must not exceed).
- Type: 'Numeric' (0-9), 'Alphanumeric' (Letters and Numbers) or 'Other'.
- Validation Regex: Advanced pattern (takes priority over the 'Type' field).
Step-by-Step Configuration:
Standard Setup (RUC)
Path: Contacts > Configuration > Identification Types.
Config: Length 11, Exact, Numeric.
Setup Avanzado (Foreign ID)
Regex: ^[A-Z]{2}-\d{6}$
Result: Only formats such as "US-123456" will be allowed.
Operating Manual
Real-Time Feedback
A red alert box appears if the ID is invalid, before you try to save.
Blocking Constraint
It is technically impossible to save a contact with an invalid ID, protecting the database.
Soporte Multinacional
Define flexible rules for foreign passports using the 'Maximum' option.
Validation Scenarios (QA)
Numeric Integrity: Entering letters in a numeric DNI field must block saving.
Length Constraint: Validate that 5 digits fail when an 'Exact' length of 8 is required.
Regex Validation: Test that complex formats (e.g. ABC-123) respect uppercase letters and hyphens.
Import Protection: When importing a CSV, Odoo must reject rows that break the rules.
Preguntas Frecuentes
I configured a Regex and it doesn't work. Why?
Make sure you use the anchors ^ (start) and $ (end) so that it matches the whole string. Example: ^\d{8}$.
How do I handle passports of variable length?
Set Length to 20, Exact Length to 'Maximum' and Type to 'Alphanumeric'.
Corporate Sales
EMAIL leads@ganemo.comDirect Advisory
WHATSAPP +1 828 672 6150Technical Support
Questions about Regex syntax for a specific ID? Our support team can help you.
ayuda@ganemo.comSpecifications
| Version | 19.0, 20.0 |