Skip to content

Commit

Permalink
[10.0][IMP] base_location(geonames): Add Lat/Long (OCA#405)
Browse files Browse the repository at this point in the history
* [IMP] base_location: Add lat & long to `better.zip`
* Add latitude and longitude columns to `better.zip`

* [IMP] base_location_geonames_import: Add lat/long
* Add support for latitude & longitude to genomes importer
  • Loading branch information
lasley authored and pedrobaeza committed Nov 16, 2021
1 parent a2b7a6a commit ba10a62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions base_location_geonames_import/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Contributors
* Alexis de Lattre <alexis.delattre@akretion.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Dave Lasley <dave@laslabs.com>

Icon
----
Expand Down
2 changes: 1 addition & 1 deletion base_location_geonames_import/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{
'name': 'Base Location Geonames Import',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'category': 'Partner Management',
'license': 'AGPL-3',
'summary': 'Import better zip entries from Geonames',
Expand Down
2 changes: 2 additions & 0 deletions base_location_geonames_import/wizard/geonames_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def _prepare_better_zip(self, row, country):
'city': self.transform_city_name(row[2], country),
'state_id': state.id,
'country_id': country.id,
'latitude': row[9],
'longitude': row[10],
}
return vals

Expand Down

0 comments on commit ba10a62

Please sign in to comment.