Skip to content

Commit

Permalink
[REF] l10n_br_zip: Remove empty Lines, necessary for the new version …
Browse files Browse the repository at this point in the history
…of pre-commit.
  • Loading branch information
mbcosta committed Oct 25, 2023
1 parent 3fbc6a4 commit 77bcea4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions l10n_br_zip/models/l10n_br_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def _consultar_cep(self, zip_code):

@api.model
def zip_search(self, obj):

try:
domain = self._set_domain(
country_id=obj.country_id.id,
Expand All @@ -188,12 +187,10 @@ def zip_search(self, obj):

# More than one ZIP was found
elif len(zips) > 1:

return self.create_wizard(obj, zips)

# Address not found in local DB, search by PyCEP-Correios
elif not zips and obj.zip:

cep_values = self._consultar_cep(obj.zip)

if cep_values:
Expand All @@ -203,7 +200,6 @@ def zip_search(self, obj):
return True

def create_wizard(self, obj, zips):

context = dict(self.env.context)
context.update({"address_id": obj.id, "object_name": obj._name})

Expand Down
1 change: 0 additions & 1 deletion l10n_br_zip/wizard/l10n_br_zip_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def default_get(self, fields_list):
return data

def zip_search(self):

self.ensure_one()
data = self
obj_zip = self.env["l10n_br.zip"]
Expand Down

0 comments on commit 77bcea4

Please sign in to comment.