| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 377 |
| Technical Name |
l10n_es_partner_validator |
| License | LGPL-3 |
| Website | https://github.com/diegorodrguez7 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 377 |
| Technical Name |
l10n_es_partner_validator |
| License | LGPL-3 |
| Website | https://github.com/diegorodrguez7 |
Spanish Partner Validator
Validate Spanish NIF / CIF / NIE, check VIES, autocomplete partner data
Why this module
Invalid Spanish VAT numbers are a top reason invoices get rejected by the AEAT. With Verifactu and TicketBAI on the horizon, having clean tax identifiers is no longer optional.
Features
Real-time validation
Mathematical check of NIF (DNI), NIE and CIF control digit/letter as you type the VAT in the partner form. Visual badge shows Valid / Invalid / Not checked.
VIES integration
One-click check against the official European VIES SOAP service. Stores the verification date on the partner so your audit trail is clean.
Autocomplete partner data
Fetch the registered legal name and address from VIES with a single click. Saves typing and avoids transcription errors when creating new B2B contacts.
Duplicate detection
Prevents creating two partners with the same Spanish VAT in the same company. Stops messy databases before they happen.
Strict or permissive mode
Choose per company: Strict blocks save when the VAT is invalid, Permissive just shows a warning. Settings live in Settings → Spanish Partner Validator.
Multi-company & multi-language
Configurable per company. UI translated to English and Spanish. Lightweight, no external Python dependencies, no API keys required.
How it works
- Open any partner with a Spanish VAT (or whose country is Spain).
- The badge next to the VAT field tells you instantly whether it is valid.
- Click Check VIES to verify the VAT against the EU registry.
- Click Autocomplete from VIES to fill name and address automatically.
Compatibility
Odoo 18.0 (Community & Enterprise). Works with Sales, Purchase, Accounting,
Contacts and any module that uses res.partner.
Support
Need help or have a feature request?
Email: drplaybasketball17@gmail.com
GitHub:
github.com/diegorodrguez7/l10n_es_partner_validator
Please log in to comment on this module