Browse Source

[10.0][IMP] base_location(geonames): Add Lat/Long (#405)

* [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
pull/638/head
Dave Lasley 8 years ago
committed by Pedro M. Baeza
parent
commit
1c3277ee25
  1. 1
      base_location/README.rst
  2. 2
      base_location/__openerp__.py
  3. 2
      base_location/models/better_zip.py

1
base_location/README.rst

@ -43,6 +43,7 @@ Contributors
* Sandy Carter <sandy.carter@savoirfairelinux.com> * Sandy Carter <sandy.carter@savoirfairelinux.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com> * Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Francesco Apruzzese <f.apruzzese@apuliasoftware.it> * Francesco Apruzzese <f.apruzzese@apuliasoftware.it>
* Dave Lasley <dave@laslabs.com>
Icon Icon
---- ----

2
base_location/__openerp__.py

@ -4,7 +4,7 @@
{ {
'name': 'Location management (aka Better ZIP)', 'name': 'Location management (aka Better ZIP)',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'depends': [ 'depends': [
'base', 'base',
], ],

2
base_location/models/better_zip.py

@ -20,6 +20,8 @@ class BetterZip(models.Model):
city = fields.Char('City', required=True) city = fields.Char('City', required=True)
state_id = fields.Many2one('res.country.state', 'State') state_id = fields.Many2one('res.country.state', 'State')
country_id = fields.Many2one('res.country', 'Country') country_id = fields.Many2one('res.country', 'Country')
latitude = fields.Float()
longitude = fields.Float()
@api.one @api.one
@api.depends( @api.depends(

Loading…
Cancel
Save