| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Lines of code | 247 |
| Technical Name |
l10n_pk_cnic_validation |
| License | LGPL-3 |
| Website | https://github.com/abscondar |
| Versions | 17.0 18.0 19.0 |
Pakistan CNIC Validation & Auto-Formatting for Odoo
Enterprise-grade CNIC validation module designed specifically for Pakistani Odoo deployments. Ensure compliant identity records, prevent duplicate CNIC entries, and maintain clean contact data across CRM, Sales, Accounting, and all business operations.
â Key Features
- CNIC pattern validation (xxxxx-xxxxxxx-x)
- Auto-format CNIC from 13-digit input
- Real-time validation on Create & Write
- SQL-level duplicate protection (fast & production-safe)
- Integrated with Contacts (res.partner)
- Company Settings toggle to enable/disable validation
- Clear, professional error messages
- Tested on Odoo 17, 18 & 19
- Migration-ready architecture
Why This Module?
CNIC is a critical identity field in Pakistani business environments. Poor validation leads to duplicate partners, incorrect invoices, reporting inconsistencies, and operational errors.
This module ensures:
- Standardized CNIC formatting across the system
- Data integrity protection at database level
- Reduced manual data cleanup
- Enterprise-ready compliance control
Technical Highlights
- Optimized SQL constraints for performance
- ORM-level safeguards for consistency
- Clean modular Odoo architecture
- Designed for production deployments
Screenshots




Compatibility
â Odoo 17
â Odoo 18
â Odoo 19
â Community & Enterprise
Support & Maintenance
Maintained by NexERP Labs, specialists in Pakistan localization and compliance solutions for Odoo.
For support inquiries or customization requests, please contact us via Odoo Apps messaging.
Please log in to comment on this module