Browse Source

[FIX] missing cr uid

pull/22/head
Lorenzo Battistini 10 years ago
parent
commit
49048f5da1
  1. 2
      base_location_geonames_import/wizard/geonames_import.py

2
base_location_geonames_import/wizard/geonames_import.py

@ -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)

Loading…
Cancel
Save