summaryrefslogtreecommitdiff
path: root/odoo/modules
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/modules')
-rw-r--r--odoo/modules/registry.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/odoo/modules/registry.py b/odoo/modules/registry.py
index 9b39758a30a..b42ebc988d5 100644
--- a/odoo/modules/registry.py
+++ b/odoo/modules/registry.py
@@ -142,10 +142,7 @@ class Registry(Mapping):
self.cache_invalidated = False
with closing(self.cursor()) as cr:
- has_unaccent = odoo.modules.db.has_unaccent(cr)
- if odoo.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 = odoo.tools.config['unaccent'] and has_unaccent
+ self.has_unaccent = odoo.modules.db.has_unaccent(cr)
@classmethod
def delete(cls, db_name):