Skip to content

Commit

Permalink
Merge PR #1916 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 4, 2024
2 parents 7e1d94d + 8afafef commit df99b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_location_geonames_import/wizard/geonames_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _domain_search_city_zip(self, row, city=False):
def _select_city(self, row, country, state):
return self.env["res.city"].search(
[
("name", "=", row[2]),
("name", "=", self.transform_city_name(row[2], country)),
("country_id", "=", country.id),
("state_id", "=", state.id),
],
Expand Down Expand Up @@ -250,7 +250,7 @@ def _process_csv(self, parsed_csv, country):
if zip_vals not in zip_vals_list:
zip_vals_list.append(zip_vals)
else:
old_zips.discard(zip_code.id)
old_zips -= set(zip_code.ids)
zip_model.create(zip_vals_list)
if not max_import:
if old_zips:
Expand Down

0 comments on commit df99b6d

Please sign in to comment.