|
@ -97,7 +97,7 @@ class better_zip_geonames_import(models.TransientModel): |
|
|
country_id = self.country_id.id |
|
|
country_id = self.country_id.id |
|
|
country_code = self.country_id.code.upper() |
|
|
country_code = self.country_id.code.upper() |
|
|
config_url = self.pool['ir.config_parameter'].get_param( |
|
|
config_url = self.pool['ir.config_parameter'].get_param( |
|
|
'geonames.url', |
|
|
|
|
|
|
|
|
self._cr, self._uid, 'geonames.url', |
|
|
default='http://download.geonames.org/export/zip/%s.zip') |
|
|
default='http://download.geonames.org/export/zip/%s.zip') |
|
|
url = config_url % country_code |
|
|
url = config_url % country_code |
|
|
logger.info('Starting to download %s' % url) |
|
|
logger.info('Starting to download %s' % url) |
|
|