From 9449e9ced2c52bfb101fa6e61de01eac0ed94c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 26 Oct 2022 23:29:24 +0200 Subject: [PATCH] Do not override trytond config when instantiate ir.configuration issue11797 review437521003 (grafted from 9e52c56a73159a78c891da0eeb73a90ccfb15790) --HG-- branch : 6.0 --- trytond/ir/configuration.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trytond/ir/configuration.py b/trytond/ir/configuration.py index ecdda9b23b..b579253646 100644 --- a/trytond/ir/configuration.py +++ b/trytond/ir/configuration.py @@ -21,8 +21,7 @@ class Configuration(ModelSingleton, ModelSQL): language = cls._get_language_cache.get(None) if language is not None: return language - config = cls(1) - language = config.language + language = cls(1).language if not language: language = config.get('database', 'language') cls._get_language_cache.set(None, language)