[FIX] registry: stupid typo
authorRaphael Collet <rco@openerp.com>
Wed, 9 Apr 2014 13:52:25 +0000 (15:52 +0200)
committerRaphael Collet <rco@openerp.com>
Wed, 9 Apr 2014 13:52:25 +0000 (15:52 +0200)
bzr revid: rco@openerp.com-20140409135225-6ks1kbuchba7u4li

openerp/modules/registry.py

index 385056f..ef6aaf1 100644 (file)
@@ -79,7 +79,7 @@ class Registry(Mapping):
         self._any_cache_cleared = False
 
         cr = self.cursor()
-        has_unaccent = openerp.modules._db.has_unaccent(cr)
+        has_unaccent = openerp.modules.db.has_unaccent(cr)
         if openerp.tools.config['unaccent'] and not has_unaccent:
             _logger.warning("The option --unaccent was given but no unaccent() function was found in database.")
         self.has_unaccent = openerp.tools.config['unaccent'] and has_unaccent