l10n_br_zip
Provides Brazilian CEP lookup to auto-fill and maintain address data in Odoo using external providers with cached results.
Key Features
- l10n_br.zip: Persists CEP search results and reuses them to populate addresses, refreshing cached records after the configured number of days when they are reused.
- l10n_br.zip: Fetches CEP data from BrazilCEP web services (API CEP or Via CEP), parsing street number and complement before storing.
- l10n_br.zip.search: Offers a wizard that presents matching CEP records for the entered address and lets the user trigger a new lookup when needed.
- res.partner: Adds a CEP search button on Brazilian partner addresses to automatically fill address fields from the lookup results.
- res.company: Adds an inline CEP field with a search button on company addresses to retrieve and set address data.
- res.config.settings: Lets administrators choose the CEP web service provider and define how many days a cached CEP remains valid before auto-refresh.
- format.address.mixin: Provides a zip_search helper to address mixin models and removes mismatched model references from inherited address views to keep view resolution correct.