From 49048f5da1da5d8d130fbd4044abb5a99a4d474c Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Mon, 15 Sep 2014 17:10:52 +0200 Subject: [PATCH] [FIX] missing cr uid --- base_location_geonames_import/wizard/geonames_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_location_geonames_import/wizard/geonames_import.py b/base_location_geonames_import/wizard/geonames_import.py index 2efd03f57..9fb2cf355 100644 --- a/base_location_geonames_import/wizard/geonames_import.py +++ b/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_code = self.country_id.code.upper() 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') url = config_url % country_code logger.info('Starting to download %s' % url)