TIP: You can type at any time to perform a new search.
Brazilian Localisation ZIP Codes
l10n_br_zip · OCA/l10n-brazil
- Repository
- OCA/l10n-brazil · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Localisation
- Folder size
- 0.11 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-brazil
- Last tracking update
- 2026-08-07 09:06:24
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Raphaël Valyi, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- brazilcep, erpbrasil.base, email-validator, num2words, phonenumbers
- System dependencies
- None
- Required by
- None
- Description
Permite consultar o endereço através do CEP e preencher o campos do endereço com as informações consultadas, esse módulo também permite utilizar os seguintes serviços para consulta de CEP: - \[API CEP\](<https://apicep.com/api-de-consulta/>) - \[Via CEP\](<https://viacep.com.br/>) - \[Correios\](<http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm>) Para otimizar as buscas este módulo salva o resultado das consultas de cep na tabela l10n_br_zip, por padrão a cada 365 dias o registro de cep na tabela é atualizado em uma nova consulta de cep nos cadastros do Odoo.
Code Analysis ⓘ
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
l10n_br_base_res_config_settings_form |
res.config.settings.form | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
l10n_br_zip_form |
l10n_br.zip.form | l10n_br.zip | form | New |
l10n_br_zip_res_company_form |
l10n_br_base.res.company.form | res.company | form | Inherits base.view_company_form |
l10n_br_zip_res_partner_form |
l10n_br_base.res.partner.form | res.partner | form | Inherits l10n_br_base.l10n_br_base_res_partner_address |
l10n_br_zip_search_form |
Pesquisar CEP | l10n_br.zip.search | form | New |
l10n_br_zip_tree |
l10n_br.zip.tree | l10n_br.zip | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (4)
New fields (0)
No new fields.
Public methods (1)-
zip_search(self)
New fields (9)
-
city_idMany2one → res.citycomodel_name='res.city'domain="[('state_id','=',state_id)]"required=Truestring='City' -
country_idMany2one → res.countrycomodel_name='res.country'string='Country' -
districtChar -
state_idMany2one → res.country.statecomodel_name='res.country.state'domain="[('country_id','=',country_id)]"string='State' -
street_nameCharstring='Logradouro' -
street_numberChar -
street_typeChar -
zip_codeCharrequired=Truestring='CEP' -
zip_complementCharstring='Range'
-
create_wizard(self, obj, zips) -
set_result(self) -
zip_search(self, obj)@api.model -
zip_select(self)
New fields (10)
-
address_idIntegerstring='Id do objeto' -
city_idMany2one → res.citycomodel_name='res.city'domain="[('state_id', '=', state_id)]"string='Cidade' -
country_idMany2one → res.countrycomodel_name='res.country'string='Country' -
districtChar -
object_nameCharstring='Nome do Objeto' -
stateSelectiondefault='init'readonly=Trueselection=[('init', 'init'), ('done', 'done')]string='state' -
state_idMany2one → res.country.statecomodel_name='res.country.state'domain="[('country_id', '=', country_id)]"string='State' -
street_nameCharstring='Logradouro' -
zipCharstring='CEP' -
zip_idsMany2many → l10n_br.zipcolumn1='zip_search_id'column2='zip_id'comodel_name='l10n_br.zip'readonly=Falserelation='zip_search'string='CEPs'
-
default_get(self, fields_list)@api.model -
zip_new_search(self) -
zip_search(self)
New fields (2)
-
cep_update_daysIntegerconfig_parameter='l10n_br_zip.cep_update_days'default=365string='Days to Update CEP' -
cep_ws_providerSelectionconfig_parameter='l10n_zip.cep_ws_provider'default='viacep'required=Trueselection=[('apicep', 'API CEP'), ('viacep', 'VIA CEP')]string='ZIP Search Provider'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…