Bulgarian Company Registry Integration
by Rosen Vladimirov https://github.com/rosenvladimirov/l10n-bulgaria
Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) • Invoicing (account) • Inventory (stock) |
| Community Apps Dependencies | Show |
| Lines of code | 4158 |
| Technical Name |
l10n_bg_company_registry |
| License | AGPL-3 |
| Website | https://github.com/rosenvladimirov/l10n-bulgaria |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) • Invoicing (account) • Inventory (stock) |
| Community Apps Dependencies | Show |
| Lines of code | 4158 |
| Technical Name |
l10n_bg_company_registry |
| License | AGPL-3 |
| Website | https://github.com/rosenvladimirov/l10n-bulgaria |
Bulgarian Company Registry Integration
Real-time integration with the official Bulgarian Trade Registry API (portal.registryagency.bg) to automatically fetch and populate company data.
Key Features:
- Real-time API integration with portal.registryagency.bg
- Search companies by EIK (Bulgarian company identification number)
- Automatically populate partner data including: - Company name (Bulgarian) - Complete structured address (city, street, postal code, district) - Legal form (ООД, ЕООД, АД, ЕТ, etc.) - Registration date and court - Economic activity (NACE/NKID code and description) - Company managers and representatives - Contact information (email, phone)
- Smart address parsing supporting all Bulgarian formats: - Streets (ул.) and boulevards (бул.) - Residential complexes (ж.к.) - Resort complexes (к.к.) - Localities (м.) and quarters (кв.) - With district information (р-н) - Email and phone extraction from addresses
- 100% success rate for address parsing
- No offline database needed - always fresh data
- Works with l10n_bg_config module for EIK/UIC validation
Recent Improvements (v18.0.2.0.1):
- Fixed HTML address parsing to preserve structure
- Fixed contact information extraction from addresses
- Fixed multi-word street name parsing
- Added support for residential complexes and all address types
- Achieved 100% success rate (up from 37%)
- Tested with real companies from multiple cities
Technical Details:
- API Endpoint: https://portal.registryagency.bg/CR/api/Deeds/
- Direct connection to official government registry
- Real-time data retrieval (30-second timeout)
- Intelligent address parsing with regex patterns
- Manager/representative extraction
- Bilingual support (Bulgarian with English generation)
Integration:
- Depends on l10n_bg_config for Bulgarian localization fields
- Uses standard Odoo fields where possible
- Extends res.partner with Bulgarian-specific fields
- Provides wizard for interactive company search
Usage:
- Open a partner record
- Enter EIK number
- Click "Fetch from Registry" button
- All data is automatically populated
Or use the "Search Registry" wizard for more control.
Author: Rosen Vladimirov License: LGPL-3 Version: 18.0.2.0.1 (December 2025)
Please log in to comment on this module