From 8df4299b942e01ea6fc622f25458794c8f190ae6 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Sun, 10 Aug 2014 23:07:34 +0200 Subject: [PATCH] [FIX] WARNING test_8 openerp.models: Cannot execute name_search, no _rec_name defined on better.zip.geonames.import --- base_location_geonames_import/wizard/geonames_import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/base_location_geonames_import/wizard/geonames_import.py b/base_location_geonames_import/wizard/geonames_import.py index d93967895..ab5b193b2 100644 --- a/base_location_geonames_import/wizard/geonames_import.py +++ b/base_location_geonames_import/wizard/geonames_import.py @@ -36,6 +36,7 @@ logger = logging.getLogger(__name__) class better_zip_geonames_import(orm.TransientModel): _name = 'better.zip.geonames.import' _description = 'Import Better Zip from Geonames' + _rec_name = 'country_id' _columns = { 'country_id': fields.many2one('res.country', 'Country', required=True),