From 1c3277ee25027ffc67bffe079a05f510cd3fe92c Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Sun, 23 Apr 2017 17:00:18 -0700 Subject: [PATCH] [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 --- base_location/README.rst | 1 + base_location/__openerp__.py | 2 +- base_location/models/better_zip.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/base_location/README.rst b/base_location/README.rst index 9cafe8b0c..5f52c2da8 100644 --- a/base_location/README.rst +++ b/base_location/README.rst @@ -43,6 +43,7 @@ Contributors * Sandy Carter * Yannick Vaucher * Francesco Apruzzese +* Dave Lasley Icon ---- diff --git a/base_location/__openerp__.py b/base_location/__openerp__.py index 969b89308..91b865f5e 100644 --- a/base_location/__openerp__.py +++ b/base_location/__openerp__.py @@ -4,7 +4,7 @@ { 'name': 'Location management (aka Better ZIP)', - 'version': '10.0.1.0.0', + 'version': '10.0.1.0.1', 'depends': [ 'base', ], diff --git a/base_location/models/better_zip.py b/base_location/models/better_zip.py index c85ea78ae..777f736ce 100644 --- a/base_location/models/better_zip.py +++ b/base_location/models/better_zip.py @@ -20,6 +20,8 @@ class BetterZip(models.Model): city = fields.Char('City', required=True) state_id = fields.Many2one('res.country.state', 'State') country_id = fields.Many2one('res.country', 'Country') + latitude = fields.Float() + longitude = fields.Float() @api.one @api.depends(