changeset b1ad7243ff94 in trytond:5.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=b1ad7243ff94
description:
        Do not override trytond config when instantiate ir.configuration

        issue11797
        review437521003
        (grafted from 9e52c56a73159a78c891da0eeb73a90ccfb15790)
diffstat:

 trytond/ir/configuration.py |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 3e492b98bef3 -r b1ad7243ff94 trytond/ir/configuration.py
--- a/trytond/ir/configuration.py       Wed Aug 17 23:32:08 2022 +0200
+++ b/trytond/ir/configuration.py       Wed Oct 26 23:29:24 2022 +0200
@@ -23,8 +23,7 @@
         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)

Reply via email to